Skip to content

Commit

Permalink
Add small spack changes to cleanup spack process on Deception.
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronrutherford committed May 23, 2024
1 parent 84fdbf2 commit 2f4e9ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 7 additions & 3 deletions buildsystem/spack/deception/env.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
#!/bin/bash

# Just for CI
source /etc/profile.d/modules.sh
module purge

# Load system python
module load python/miniconda3.9
source /share/apps/python/miniconda3.9/etc/profile.d/conda.sh
module rm python
module load python/miniconda3.9 >/dev/null 2>&1
source /share/apps/python/miniconda3.9/etc/profile.d/conda.sh >/dev/null 2>&1

# Load system modules
module rm gcc
module load gcc/9.1.0
module rm cuda
module load cuda/11.4
module rm openmpi
module load openmpi/4.1.0mlx5.0

# Define environment variables for where spack stores key files
Expand Down
1 change: 0 additions & 1 deletion buildsystem/spack/load_spack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ fi
MY_CLUSTER="${MY_CLUSTER:?MY_CLUSTER is unset. Please set manually.}"
[[ -z $MY_CLUSTER ]] && return 1

echo "$MY_CLUSTER" | awk '{print tolower($0)}'
# Use ${var,,} to convert to lower case
# There must be an existing folder for the cluster
if [ ! -d "./buildsystem/spack/${MY_CLUSTER}" ]; then
Expand Down

0 comments on commit 2f4e9ac

Please sign in to comment.