-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 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 |
---|---|---|
|
@@ -10,23 +10,23 @@ source /exp/dune/data/users/losulliv/spack/my_spack/setup-env.sh | |
|
||
# Load up a load of schtuff with spack, check if packages are loaded first | ||
# - All the good stuff is built with gcc 12.2.0 toolchain, load newer cmake | ||
# - Load root, geant4, clhep, expatn and edep-sim built with above toolchain | ||
# - Load root, geant4, clhep, expat, and edep-sim built with above toolchain | ||
# - We first check the list of loaded packages using grep to see if we have them loaded | ||
# (e.g. already sourced this file) and load it with spack if not | ||
|
||
spack load --list | grep "[email protected]" >/dev/null 2>&1 # # 0(true) if it's loaded, 1(false) otherwise | ||
if [ $? -ne 0 ]; then spack load [email protected]%[email protected] && echo "Setup gcc..."; else echo "gcc already loaded."; fi | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 # # 0(true) if it's loaded, 1(false) otherwise | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 | ||
if [ $? -ne 0 ]; then spack load [email protected]%[email protected] && echo "Setup cmake..."; else echo "cmake already loaded."; fi | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 # # 0(true) if it's loaded, 1(false) otherwise | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 | ||
if [ $? -ne 0 ]; then spack load [email protected]%[email protected] && echo "Setup root..."; else echo "root already loaded."; fi | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 # # 0(true) if it's loaded, 1(false) otherwise | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 | ||
if [ $? -ne 0 ]; then spack load [email protected]%[email protected] && echo "Setup geant4..."; else echo "geant4 already loaded."; fi | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 # # 0(true) if it's loaded, 1(false) otherwise | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 | ||
if [ $? -ne 0 ]; then spack load [email protected]%[email protected] && echo "Setup clhep..."; else echo "clhep already loaded."; fi | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 # # 0(true) if it's loaded, 1(false) otherwise | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 | ||
if [ $? -ne 0 ]; then spack load [email protected]%[email protected] && echo "Setup expat..."; else echo "expat already loaded."; fi | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 # # 0(true) if it's loaded, 1(false) otherwise | ||
spack load --list | grep "[email protected]" >/dev/null 2>&1 | ||
if [ $? -ne 0 ]; then spack load [email protected]%[email protected] && echo "Setup edep-sim..."; else echo "edep-sim already loaded."; fi | ||
|
||
export TMS_DIR=${PWD} | ||
|