Skip to content

Commit e372487

Browse files
authored
Merge pull request #6026 from ye-luo/update-perlmutter-recipe
Update NERSC Perlmutter build recipe
2 parents f85a9a4 + 0fd4d63 commit e372487

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

config/build_nersc_perlmutter_Clang.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
#!/bin/bash
22
# This recipe is intended for NERSC Perlmutter https://docs.nersc.gov/systems/perlmutter
33
# It builds all the varaints of QMCPACK in the current directory
4-
# last revision: Apr 24th 2025
4+
# last revision: July 6th 2026
55
#
66
# How to invoke this script?
77
# build_nersc_perlmutter_Clang.sh # build all the variants assuming the current directory is the source directory.
88
# build_nersc_perlmutter_Clang.sh <source_dir> # build all the variants with a given source directory <source_dir>
99
# build_nersc_perlmutter_Clang.sh <source_dir> <install_dir> # build all the variants with a given source directory <source_dir> and install to <install_dir>
10+
#
11+
# When running executables built with this script, the same set of modules should be loaded
12+
# export MPICH_GPU_SUPPORT_ENABLED=0 is also required to avoid errors such as "MPIDI_CRAY_init: GPU_SUPPORT_ENABLED is requested, but GTL library is not linked"
13+
14+
module load llvm/21.1.4
15+
export MPICH_CC=`which clang`
16+
export MPICH_CXX=`which clang++`
1017

1118
module load PrgEnv-gnu
1219
module load cray-libsci
@@ -15,12 +22,8 @@ module unload PrgEnv-gnu
1522
module load craype cray-mpich
1623
module load cray-fftw
1724
module load cray-hdf5-parallel
18-
module load cmake/3.24.3
19-
20-
module use /global/common/software/nersc/n9/llvm/modules
21-
module load llvm/17.0.6-gpu
22-
export MPICH_CC=clang
23-
export MPICH_CXX=clang++
25+
module load cmake
26+
export BOOST_ROOT=/global/common/software/m2113/opt/boost/1_82_0
2427

2528
echo "**********************************"
2629
echo '$ clang -v'
@@ -29,7 +32,7 @@ echo "**********************************"
2932

3033
TYPE=Release
3134
Machine=perlmutter
32-
Compiler=Clang17
35+
Compiler=Clang21
3336

3437
if [[ $# -eq 0 ]]; then
3538
source_folder=`pwd`

0 commit comments

Comments
 (0)