diff --git a/load_sim_tools.sh b/load_sim_tools.sh index 4570d68507b244cb2151766cd47655701e624b8c..73b43162f6295f99157647a54337e06b6e534295 100644 --- a/load_sim_tools.sh +++ b/load_sim_tools.sh @@ -6,39 +6,18 @@ #usage :source ./load_sim_tools.sh #============================================================================== -echo "Downloading files..." - -wget https://object.cscs.ch/v1/AUTH_9c619ee75cab4993b1c4c86a37586357/test_spack/spack_20210601.tar.gz -wget https://object.cscs.ch/v1/AUTH_9c619ee75cab4993b1c4c86a37586357/test_spack/spack_tmp_20210601.tar.gz -wget https://object.cscs.ch/v1/AUTH_9c619ee75cab4993b1c4c86a37586357/test_spack/shared_libs.tar.gz - -echo "Extracting..." - -tar -xzvf spack_20210601.tar.gz -tar -xzvf spack_tmp_20210601.tar.gz -tar -xzvf shared_libs.tar.gz - -rm -f spack_20210601.tar.gz -rm -f spack_tmp_20210601.tar.gz -rm -f shared_libs.tar.gz - echo "Setting up environment..." -mv spack/ /opt/app-root/src/ -mv .spack /opt/app-root/src/ -mv shared_libs /opt/app-root/src/ -cd /opt/app-root/src - -source spack/share/spack/setup-env.sh -export LD_LIBRARY_PATH=/opt/app-root/src/shared_libs:$LD_LIBRARY_PATH +cp -r /srv/test-build/spack/.spack ~ +source /srv/test-build/spack/share/spack/setup-env.sh echo "Loading packages..." -spack load -r python %gcc@9.3.1 -spack load -r py-numpy %gcc@9.3.1 -spack load -r arbor %gcc@9.3.1 -spack load -r neuron %gcc@9.3.1 -spack load -r nest %gcc@9.3.1 +spack load -r python %gcc@10.3.0 +spack load -r py-numpy %gcc@10.3.0 +spack load -r arbor %gcc@10.3.0 +spack load -r neuron %gcc@10.3.0 +spack load -r nest %gcc@10.3.0 echo "Everything ready!" #echo "Starting Python..."