forked from SPECFEM/specfem3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better configure script for Cray (utils/Cray_compiler_information/con…
…figure_SPECFEM_for_Piz_Daint.bash)
- Loading branch information
Showing
4 changed files
with
38 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
33 changes: 0 additions & 33 deletions
33
utils/Cray_compiler_information/configure_SPECFEM3D_for_Piz_Daint.bash
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
utils/Cray_compiler_information/configure_SPECFEM_for_Piz_Daint.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|