-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bash): compile bash laods compilers need to compile
- Loading branch information
1 parent
f00fed5
commit 6a2c285
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 --------------- ### | ||
|