Skip to content

Commit

Permalink
Merge pull request #5281 from ye-luo/perlmutter-offload-recipe
Browse files Browse the repository at this point in the history
Update NERSC perlmutter recipe
  • Loading branch information
prckent authored Jan 15, 2025
2 parents 74534a6 + 8872b17 commit 0ee08de
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions config/build_nersc_perlmutter_Clang.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# This recipe is intended for NERSC Perlmutter https://docs.nersc.gov/systems/perlmutter
# It builds all the varaints of QMCPACK in the current directory
# last revision: Mar 18th 2024
# last revision: Jan 14th 2025
#
# How to invoke this script?
# build_nersc_perlmutter_Clang.sh # build all the variants assuming the current directory is the source directory.
Expand Down Expand Up @@ -47,7 +47,7 @@ else
exit
fi

for name in offload_cuda_real_MP offload_cuda_real offload_cuda_cplx_MP offload_cuda_cplx \
for name in gpu_real_MP gpu_real gpu_cplx_MP gpu_cplx \
cpu_real_MP cpu_real cpu_cplx_MP cpu_cplx
do

Expand All @@ -61,18 +61,10 @@ if [[ $name == *"_MP"* ]]; then
CMAKE_FLAGS="$CMAKE_FLAGS -DQMC_MIXED_PRECISION=ON"
fi

if [[ $name == *"offload"* || $name == *"cuda"* ]]; then
if [[ $name == *"gpu"* ]]; then
CMAKE_FLAGS="$CMAKE_FLAGS -DQMC_GPU_ARCHS=sm_80"
fi

if [[ $name == *"offload"* ]]; then
CMAKE_FLAGS="$CMAKE_FLAGS -DENABLE_OFFLOAD=ON"
fi

if [[ $name == *"cuda"* ]]; then
CMAKE_FLAGS="$CMAKE_FLAGS -DENABLE_CUDA=ON"
fi

folder=build_${Machine}_${Compiler}_${name}

if [[ -v install_folder ]]; then
Expand Down

0 comments on commit 0ee08de

Please sign in to comment.