-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gnugpu, nvidia and nvidiagpu cmake and modules
- Loading branch information
1 parent
74a78e7
commit 359013d
Showing
6 changed files
with
31 additions
and
83 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
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
string(APPEND CONFIG_ARGS " --host=cray") | ||
if (COMP_NAME STREQUAL gptl) | ||
string(APPEND CPPDEFS " -DHAVE_NANOTIME -DBIT64 -DHAVE_SLASHPROC -DHAVE_GETTIMEOFDAY") | ||
endif() | ||
set(SCC "cc") | ||
set(SCXX "CC") | ||
set(SFC "ftn") |
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 |
---|---|---|
@@ -1,26 +1,13 @@ | ||
string(APPEND CONFIG_ARGS " --host=cray") | ||
set(USE_CUDA "TRUE") | ||
string(APPEND CPPDEFS " -DGPU") | ||
if (COMP_NAME STREQUAL gptl) | ||
string(APPEND CPPDEFS " -DHAVE_NANOTIME -DBIT64 -DHAVE_SLASHPROC -DHAVE_GETTIMEOFDAY") | ||
endif() | ||
set(USE_CUDA "TRUE") | ||
string(APPEND CPPDEFS " -DGPU -DMPAS_OPENACC") | ||
string(APPEND CPPDEFS " -DTHRUST_IGNORE_CUB_VERSION_CHECK") | ||
string(APPEND CUDA_FLAGS " -ccbin cc -O2 -arch sm_80 --use_fast_math") | ||
string(APPEND SLIBS " -L$ENV{CRAY_HDF5_PARALLEL_PREFIX}/lib -lhdf5_hl -lhdf5 -L$ENV{CRAY_NETCDF_HDF5PARALLEL_PREFIX} -L$ENV{CRAY_PARALLEL_NETCDF_PREFIX}/lib -lpnetcdf -lnetcdf -lnetcdff") | ||
string(APPEND SLIBS " -L$ENV{LAPACK_PATH}/lib -llapack -L$ENV{OPENBLAS_PATH}/lib -lblas") | ||
if (NOT MPILIB STREQUAL mpi-serial) | ||
# string(APPEND SLIBS " -L$ENV{ADIOS2_DIR}/lib64 -ladios2_c_mpi -ladios2_c -ladios2_core_mpi -ladios2_core -ladios2_evpath -ladios2_ffs -ladios2_dill -ladios2_atl -ladios2_enet") | ||
endif() | ||
set(CXX_LINKER "FORTRAN") | ||
set(SUPPORTS_CXX "TRUE") | ||
set(NETCDF_PATH "$ENV{CRAY_PARALLEL_NETCDF_PREFIX}") | ||
set(NETCDF_C_PATH "$ENV{CRAY_PARALLEL_NETCDF_PREFIX}") | ||
set(NETCDF_FORTRAN_PATH "$ENV{CRAY_PARALLEL_NETCDF_PREFIX}") | ||
set(HDF5_PATH "$ENV{CRAY_HDF5_PARALLEL_PREFIX}") | ||
set(PNETCDF_PATH "$ENV{CRAY_PARALLEL_NETCDF_PREFIX}") | ||
string(APPEND CUDA_FLAGS " -ccbin CC -O2 -arch sm_80 --use_fast_math") | ||
string(APPEND CMAKE_EXE_LINKER_FLAGS " -acc=gpu -gpu=cc80,cuda11.0 -Minfo=accel") | ||
set(SCC "cc") | ||
set(SCXX "CC") | ||
set(SFC "ftn") | ||
set(MPICC "cc") | ||
set(MPICXX "CC") | ||
set(MPIFC "ftn") | ||
string(APPEND CMAKE_Fortran_FLAGS " -acc=gpu -gpu=cc80,cuda11.0 -Minfo=accel") |
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
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