Commit eb22e35 Cameron Rutherford
authored May 23, 2024 · 5 / 5 · Verified
1 parent 84fdbf2 commit eb22e35 Copy full SHA for eb22e35
File tree 4 files changed +25
-8
lines changed
4 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Just for CI
3
4
source /etc/profile.d/modules.sh
4
- module purge
5
5
6
6
# Load system python
7
- module load python/miniconda3.9
8
- source /share/apps/python/miniconda3.9/etc/profile.d/conda.sh
7
+ module rm python
8
+ module load python/miniconda3.9 > /dev/null 2>&1
9
+ source /share/apps/python/miniconda3.9/etc/profile.d/conda.sh > /dev/null 2>&1
9
10
10
11
# Load system modules
12
+ module rm gcc
11
13
module load gcc/9.1.0
14
+ module rm cuda
12
15
module load cuda/11.4
16
+ module rm openmpi
13
17
module load openmpi/4.1.0mlx5.0
14
18
19
+ # Print modules for sanity
20
+ module list
21
+
15
22
# Define environment variables for where spack stores key files
16
23
# For now, SPACK_INSTALL is the path where everything spack related is installed
17
24
# If you want to modify the module install path, edit the spack.yaml manually
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ module purge
8
8
# MPI module is finnicky on incline
9
9
modules=$( module list 2>&1 )
10
10
if echo $modules | grep -q ' openmpi' ; then
11
- module load gcc/8.4.0
12
- module rm openmpi
11
+ module load gcc/8.4.0
12
+ module rm openmpi
13
13
fi
14
14
15
15
# Configure python and other system modules
@@ -20,6 +20,9 @@ module load openmpi/4.1.4
20
20
module load rocm/5.3.0
21
21
module load python/3.7.0
22
22
23
+ # Print out modules for sanity
24
+ module list
25
+
23
26
# Try forcing behaviour of spack compiler
24
27
export SPACK_CC=$( which gcc)
25
28
export SPACK_CXX=$( which g++)
Original file line number Diff line number Diff line change 10
10
MY_CLUSTER=" ${MY_CLUSTER:? MY_CLUSTER is unset. Please set manually.} "
11
11
[[ -z $MY_CLUSTER ]] && return 1
12
12
13
- echo " $MY_CLUSTER " | awk ' {print tolower($0)}'
14
13
# Use ${var,,} to convert to lower case
15
14
# There must be an existing folder for the cluster
16
15
if [ ! -d " ./buildsystem/spack/${MY_CLUSTER} " ]; then
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Just for CI
3
4
. /etc/profile.d/modules.sh
4
5
5
6
# Load system python
6
- module load python/miniconda3.8
7
- . /share/apps/python/miniconda3.8/etc/profile.d/conda.sh
7
+ module rm python
8
+ module load python/miniconda3.8 > /dev/null 2>&1
9
+ . /share/apps/python/miniconda3.8/etc/profile.d/conda.sh > /dev/null 2>&1
8
10
9
11
# Load compiler/system modules
12
+ module rm gcc
10
13
module load gcc/8.5.0
14
+ module rm cuda
11
15
module load cuda/11.4
16
+ module rm openmpi
12
17
module load openmpi/4.1.4
13
18
19
+ # Print modules for sanity
20
+ module list
21
+
14
22
# Define environment variables for where spack stores key files
15
23
# For now, SPACK_INSTALL is the path where everything spack related is installed
16
24
# If you want to modify the module install path, edit the spack.yaml manually
You can’t perform that action at this time.
0 commit comments