You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/build_nersc_perlmutter_Clang.sh
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,19 @@
1
1
#!/bin/bash
2
2
# This recipe is intended for NERSC Perlmutter https://docs.nersc.gov/systems/perlmutter
3
3
# It builds all the varaints of QMCPACK in the current directory
4
-
# last revision: Apr 24th 2025
4
+
# last revision: July 6th 2026
5
5
#
6
6
# How to invoke this script?
7
7
# build_nersc_perlmutter_Clang.sh # build all the variants assuming the current directory is the source directory.
8
8
# build_nersc_perlmutter_Clang.sh <source_dir> # build all the variants with a given source directory <source_dir>
9
9
# 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++`
10
17
11
18
module load PrgEnv-gnu
12
19
module load cray-libsci
@@ -15,12 +22,8 @@ module unload PrgEnv-gnu
15
22
module load craype cray-mpich
16
23
module load cray-fftw
17
24
module load cray-hdf5-parallel
18
-
module load cmake/3.24.3
19
-
20
-
module use /global/common/software/nersc/n9/llvm/modules
0 commit comments