Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions toolchain/bootstrap/modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ if [ "$u_c" '==' 'famd' ] || [ "$u_c" '==' 'tamd' ]; then
export CRAY_MPICH_LIB="-L${CRAY_MPICH_PREFIX}/lib \
${CRAY_PMI_POST_LINK_OPTS} \
-lmpifort_amd -lmpi_amd -lmpi -lpmi -lpmi2"
# GPU-aware MPI (rdma_mpi): GTL, set by craype-accel-amd-gfx90a on Frontier GPU loads
if [ "$u_c" '==' 'famd' ] && [ "$cg" '==' 'gpu' ]; then
export CRAY_MPICH_LIB="${CRAY_MPICH_LIB} ${PE_MPICH_GTL_DIR_amd_gfx90a} ${PE_MPICH_GTL_LIBS_amd_gfx90a}"
fi
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${CRAY_LD_LIBRARY_PATH}"
export CMAKE_PREFIX_PATH="${OLCF_AFAR_ROOT}:${CMAKE_PREFIX_PATH}"
export FC="${OLCF_AFAR_ROOT}/bin/amdflang"
Expand Down
1 change: 1 addition & 0 deletions toolchain/modules
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ famd OLCF Frontier AMD
famd-all python cmake
famd-all PrgEnv-amd
famd-all cpe/26.03
famd-gpu craype-accel-amd-gfx90a

amdfund AMD HPCFund
amdfund-all gnu12 openmpi4/4.1.8 cmake rocm/7.2.0
Expand Down
11 changes: 9 additions & 2 deletions toolchain/templates/frontier_amd.mako
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,21 @@ cd "${MFC_ROOT_DIR}"
cd - > /dev/null
echo

% if gpu_enabled:
export MPICH_GPU_SUPPORT_ENABLED=1
% else:
export MPICH_GPU_SUPPORT_ENABLED=0
% endif

ulimit -s unlimited

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

% if engine == 'batch':
# Broadcast binary to compute nodes
sbcast --send-libs -pf ${target.get_install_binpath(case)} /mnt/bb/$USER/${target.name}
# Broadcast binary to compute nodes; libraries load from their install paths, since an HSA runtime loaded from a
# --send-libs copy breaks multi-node GPU runs (OpenMP image load, GPU-aware MPI)
sbcast --send-libs=no -pf ${target.get_install_binpath(case)} /mnt/bb/$USER/${target.name}
% endif

% if not mpi:
Expand Down
Loading