Skip to content

Commit afe6058

Browse files
committed
Add fixes for Delta PrgEnv-nvidia
1 parent c0da7ca commit afe6058

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ if (CMAKE_BUILD_TYPE STREQUAL "Release")
238238
if (CMAKE_Fortran_COMPILER_ID STREQUAL "NVHPC")
239239
if (MFC_Unified)
240240
message(STATUS "LTO/IPO is not available with NVHPC using Unified Memory")
241+
elseif (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER "24.11" AND CMAKE_Fortran_COMPILER_VERSION VERSION_LESS "25.9")
242+
message(STATUS "LTO/IPO is not supported in NVHPC Version 24.11 to 25.9. Use >=25.9 or (<=24.11 && > 23.11) Performance will be degraded.")
243+
set(NVHPC_USE_TWO_PASS_IPO FALSE)
241244
elseif(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS "23.11")
242245
message(STATUS "LTO/IPO is not supported in NVHPC Version < 23.11. Use a newer version of NVHPC for best performance.")
243246
else()

toolchain/modules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ tuo-gpu craype-accel-amd-gfx942
5757
tuo-gpu HSA_XNACK=0
5858

5959
d NCSA Delta
60-
d-all python/3.11.6
60+
d-all python
6161
d-cpu gcc/11.4.0 openmpi
62-
d-gpu nvhpc/24.1 cuda/12.3.0 openmpi/4.1.5+cuda cmake
62+
d-gpu PrgEnv-nvidia/8.6.0
6363
d-gpu CC=nvc CXX=nvc++ FC=nvfortran
6464
d-gpu MFC_CUDA_CC=80,86
6565

toolchain/templates/delta.mako

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ cd "${MFC_ROOT_DIR}"
3636
cd - > /dev/null
3737
echo
3838

39-
# Fixes Delta not being able to find core library file
40-
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sw/spack/deltas11-2023-03/apps/linux-rhel8-zen3/nvhpc-24.1/openmpi-4.1.5-zkiklxi/lib/
39+
% if gpu_enabled:
40+
export MPICH_GPU_SUPPORT_ENABLED=0 # Disable GPU-Direct MPI
41+
% endif
4142

4243
% for target in targets:
4344
${helpers.run_prologue(target)}

0 commit comments

Comments
 (0)