-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'origin/oksanaguba/homme/compy-cmake-file' into next (PR #…
…3117) Adding cmake cache files for compy intel and pgi. Fixes for cxx building and for a linker for building with cime. Fixes #3225 . [bfb] for the machines we run on.
- Loading branch information
Showing
6 changed files
with
64 additions
and
4 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
SET(CMAKE_C_COMPILER "mpiicc" CACHE STRING "") | ||
SET(CMAKE_CXX_COMPILER "mpiicpc" CACHE STRING "") | ||
SET(CMAKE_Fortran_COMPILER "mpiifort" CACHE STRING "") | ||
|
||
SET (WITH_PNETCDF FALSE CACHE FILEPATH "") | ||
|
||
SET (NETCDF_DIR "$ENV{NETCDF_ROOT}" CACHE STRING "") | ||
|
||
#is there a better way? without this linker does not see C netcdf library | ||
SET (ADD_LINKER_FLAGS "-L/$ENV{NETCDF_ROOT}/lib -lnetcdff -lnetcdf" CACHE STRING "") | ||
SET (ADD_Fortran_FLAGS "-traceback" CACHE STRING "") | ||
|
||
SET (USE_MPIEXEC "srun" CACHE STRING "") | ||
SET (USE_MPI_OPTIONS " --mpi=pmi2 --kill-on-bad-exit --cpu_bind=cores" CACHE STRING "") | ||
SET (HOMME_USE_MKL "TRUE" CACHE FILEPATH "") # for Intel | ||
SET (USE_QUEUING FALSE CACHE BOOL "") | ||
# for standalone HOMME builds: | ||
#SET (CPRNC_DIR /lcrc/group/acme/tools/cprnc CACHE FILEPATH "") | ||
|
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,20 @@ | ||
# O. Guba 08/2019 | ||
#module purge | ||
|
||
SET(CMAKE_C_COMPILER "mpipgcc" CACHE STRING "") | ||
SET(CMAKE_CXX_COMPILER "mpipgcxx" CACHE STRING "") | ||
SET(CMAKE_Fortran_COMPILER "mpipgf90" CACHE STRING "") | ||
|
||
SET (WITH_PNETCDF FALSE CACHE FILEPATH "") | ||
|
||
SET (NETCDF_DIR "$ENV{NETCDF_ROOT}" CACHE STRING "") | ||
|
||
#is there a better way? without this linker does not see C netcdf library | ||
SET (ADD_LINKER_FLAGS "-L/$ENV{MKLROOT}/lib/intel64 -L/$ENV{NETCDF_ROOT}/lib -lnetcdff -lnetcdf -lmkl_rt" CACHE STRING "") | ||
SET (ADD_Fortran_FLAGS "-traceback" CACHE STRING "") | ||
|
||
SET (USE_MPIEXEC "srun" CACHE STRING "") | ||
SET (USE_MPI_OPTIONS "--mpi=pmi2 --kill-on-bad-exit --cpu_bind=cores" CACHE STRING "") | ||
SET (USE_QUEUING FALSE CACHE BOOL "") | ||
# for standalone HOMME builds: | ||
#SET (CPRNC_DIR /lcrc/group/acme/tools/cprnc CACHE FILEPATH "") |
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,20 @@ | ||
# O. Guba 08/2019 | ||
#module purge | ||
|
||
SET(CMAKE_C_COMPILER "mpipgcc" CACHE STRING "") | ||
SET(CMAKE_CXX_COMPILER "mpipgcxx" CACHE STRING "") | ||
SET(CMAKE_Fortran_COMPILER "mpipgf90" CACHE STRING "") | ||
|
||
SET (WITH_PNETCDF FALSE CACHE FILEPATH "") | ||
|
||
SET (NETCDF_DIR "$ENV{NETCDF_ROOT}" CACHE STRING "") | ||
|
||
#is there a better way? without this linker does not see C netcdf library | ||
SET (ADD_LINKER_FLAGS "-L/$ENV{MKLROOT}/lib/intel64 -L/$ENV{NETCDF_ROOT}/lib -lnetcdff -lnetcdf -lmkl_rt" CACHE STRING "") | ||
SET (ADD_Fortran_FLAGS "-traceback" CACHE STRING "") | ||
|
||
SET (USE_MPIEXEC "srun" CACHE STRING "") | ||
SET (USE_MPI_OPTIONS "--mpi=pmi2 --kill-on-bad-exit --cpu_bind=cores" CACHE STRING "") | ||
SET (USE_QUEUING FALSE CACHE BOOL "") | ||
# for standalone HOMME builds: | ||
#SET (CPRNC_DIR /lcrc/group/acme/tools/cprnc CACHE FILEPATH "") |
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