Trusa Grid env fix

This commit is contained in:
Antonin Portelli 2023-01-27 17:56:10 +00:00
parent c9d3d0bbc5
commit 8f043343fb
2 changed files with 6 additions and 10 deletions

View File

@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# shellcheck disable=SC1091 # shellcheck disable=SC1091
GRIDENVDIR="$(dirname "$(readlink -f "${BASH_SOURCE:-$0}")")" env_dir="$(dirname "$(readlink -f "${BASH_SOURCE:-$0}")")"
export GRIDENVDIR source "${env_dir}/spack/share/spack/setup-env.sh"
export PATH="${GRIDENVDIR}/prefix/base/bin:${PATH}" spack load jq git
export ACLOCAL_PATH="${GRIDENVDIR}/prefix/base/share/aclocal:${ACLOCAL_PATH}"
source "${GRIDENVDIR}"/spack/share/spack/setup-env.sh

View File

@ -166,7 +166,7 @@ spack install ucx@1.12.0.CPU%gcc@9.4.0 openmpi@4.1.1.CPU%gcc@9.4.0
cd "${cwd}" cd "${cwd}"
# environments ################################################################# # environments #################################################################
dev_tools=("autoconf" "automake" "libtool" "jq") dev_tools=("autoconf" "automake" "libtool" "jq" "git")
ompi_gpu_hash=$(spack find --format "{hash}" openmpi@4.1.1.GPU) ompi_gpu_hash=$(spack find --format "{hash}" openmpi@4.1.1.GPU)
ompi_cpu_hash=$(spack find --format "{hash}" openmpi@4.1.1.CPU) ompi_cpu_hash=$(spack find --format "{hash}" openmpi@4.1.1.CPU)
@ -190,6 +190,8 @@ spack add openssl gmp mpfr c-lime
spack install spack install
spack env deactivate spack env deactivate
spack install jq git
# Final setup ################################################################## # Final setup ##################################################################
spack clean spack clean
spack gc -y spack gc -y
@ -199,7 +201,3 @@ spack config --scope site add 'modules:prefix_inspections:lib:[LD_LIBRARY_PATH,L
spack config --scope site add 'modules:prefix_inspections:lib64:[LD_LIBRARY_PATH,LIBRARY_PATH]' spack config --scope site add 'modules:prefix_inspections:lib64:[LD_LIBRARY_PATH,LIBRARY_PATH]'
spack config --scope site add 'modules:prefix_inspections:include:[C_INCLUDE_PATH,CPLUS_INCLUDE_PATH,INCLUDE]' spack config --scope site add 'modules:prefix_inspections:include:[C_INCLUDE_PATH,CPLUS_INCLUDE_PATH,INCLUDE]'
spack module tcl refresh -y spack module tcl refresh -y
# permission change for group access
chmod -R g+rw "${dir}/spack/var/spack/cache"
setfacl -d -R -m g::rwX "${dir}/spack/var/spack/cache"