Skip to content

Commit

Permalink
Disable gpu env-vars in cpu runs; append cuda path to link flags
Browse files Browse the repository at this point in the history
  • Loading branch information
amametjanov committed Feb 6, 2024
1 parent 66752a8 commit 1fa0cfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cime_config/machines/cmake_macros/gnugpu_polaris.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ set(MPIFC "ftn")
set(SCC "cc")
set(SCXX "CC")
set(SFC "ftn")
string(APPEND CMAKE_EXE_LINKER_FLAGS " -L/soft/compilers/cudatoolkit/cuda-11.4.4/lib64/ ")
2 changes: 2 additions & 0 deletions cime_config/machines/config_machines.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3211,6 +3211,8 @@
<environment_variables>
<env name="NETCDF_PATH">$ENV{CRAY_NETCDF_HDF5PARALLEL_PREFIX}</env>
<env name="PNETCDF_PATH">$ENV{CRAY_PARALLEL_NETCDF_PREFIX}</env>
<env name="MPICH_GPU_SUPPORT_ENABLED">0</env>
<env name="CRAY_ACCEL_TARGET">host</env>
<env name="GPU_TILE_COMPACT"> </env>
</environment_variables>
<environment_variables compiler=".*gpu">
Expand Down

0 comments on commit 1fa0cfa

Please sign in to comment.