Skip to content

Commit

Permalink
better configure script for Cray (utils/Cray_compiler_information/con…
Browse files Browse the repository at this point in the history
…figure_SPECFEM_for_Piz_Daint.bash)
  • Loading branch information
komatits committed Jun 15, 2018
1 parent c20aaa0 commit 5a14265
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 33 deletions.
1 change: 1 addition & 0 deletions doc/USER_MANUAL/02_getting_started.tex
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ \chapter{Getting Started}\label{cha:Getting-Started}

If you have problems configuring the code on a Cray machine, i.e. for instance if you get an error message from the \texttt{configure} script, try exporting these two variables:
\texttt{MPI\_INC=\${CRAY\_MPICH2\_DIR}/include and FCLIBS=" "}, and for more details if needed you can refer to the \texttt{utils/Cray\_compiler\_information} directory.
You can also have a look at the configure script called \texttt{utils/Cray\_compiler\_information/configure\_SPECFEM\_for\_Piz\_Daint.bash}.

On SGI systems, \texttt{flags.guess} automatically informs \texttt{configure}
to insert `\texttt{`TRAP\_FPE=OFF}'' into the generated \texttt{Makefile}
Expand Down
Binary file modified doc/USER_MANUAL/manual_SPECFEM3D_Cartesian.pdf
Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash

mpif90=ftn
mpicc=cc
f90=ftn
cc=cc

# run flags
#flags="-eF -em -rm"
#cflags="-h list=m"

## memory > 2GB
flags="-eF -em -rm -O3,fp3 -hpic -dynamic"
cflags="-h list=m -hpic -dynamic"

# debug flags
#flags="-g -Rb -eF -rm -eC -eD" # -hfp2"
#cflags="-g -h list=m"

###
### CUDA
###
CUDA_INC="${CRAY_CUDATOOLKIT_DIR}/include"
CUDA_LIB="${CRAY_CUDATOOLKIT_DIR}/lib64"

###
### mpi.h / mpif.h
###
MPI_INC="${CRAY_MPICH2_DIR}/include"

# DK DK June 2018: on Pascal P100 (for instance on Piz Daint in Switzerland) do *NOT* change --with-cuda=cuda8 below to --with-cuda=cuda9;
# DK DK June 2018: only change that on machines that have Volta V100, not Pascal P100

./configure \
--with-cuda=cuda8 CUDA_INC="$CUDA_INC" CUDA_LIB="$CUDA_LIB" MPI_INC="$MPI_INC" \
MPIFC=$mpif90 MPICC=$mpicc FC=$f90 CC=$cc CXX=$cc FLAGS_CHECK="$flags" CFLAGS="$cflags"

0 comments on commit 5a14265

Please sign in to comment.