Skip to content

Commit

Permalink
feat(bash): compile bash laods compilers need to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Apr 11, 2024
1 parent f00fed5 commit 6a2c285
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion scripts/bash/build_cleo_serial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
### ------------------------------------------------------------------------ ###
module load gcc/11.2.0-gcc-11.2.0
spack load [email protected]%gcc
source activate /work/mh1126/m300950/cleoenv
gxx="/sw/spack-levante/gcc-11.2.0-bcn7mb/bin/g++"
gcc="/sw/spack-levante/gcc-11.2.0-bcn7mb/bin/gcc"

Expand Down
12 changes: 9 additions & 3 deletions scripts/bash/compile_cleo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@
### ------ Optionally edit these lines to specify ------ ###
### ------ your environment and/or build directory ----- ###
### --------- path and/or executable to compile -------- ###
spack load [email protected]%gcc
buildtype=$1 # get from command line argument
path2build=$2 # get from command line argument
executable=$3 # get from command line argument

path2build=$1 # get from command line argument
executable=$2 # get from command line argument
spack load [email protected]%gcc
module load gcc/11.2.0-gcc-11.2.0
if [[ "${buildtype}" == "cuda" ]];
then
module load nvhpc/23.9-gcc-11.2.0 # load nvhpc compilers if compiling CUDA build
fi
### ---------------------------------------------------- ###

### ----------------- compile executable --------------- ###
Expand Down

0 comments on commit 6a2c285

Please sign in to comment.