From 32eb677abfcf7161711fd8dc65ab6d451c61035b Mon Sep 17 00:00:00 2001 From: Athanasios Karmas <karmas@athenarc.gr> Date: Mon, 22 Nov 2021 11:23:58 +0000 Subject: [PATCH] pinned spack arch in spack/etc/spack/packages.yaml and made code adaptations to reflect that change --- README.md | 1 + create_JupyterLab_kernel.sh | 2 +- load_sim_tools.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ebd275d9..fcfa056d 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Build and distribute software tools with Spack for the EBRAINS Collaboratory Lab ``` #update modulepath of JupterLab container to include spack arch modulefiles path module use /srv/test-build/spack/share/spack/modules/linux-centos7-broadwell/ +module use /srv/test-build/spack/share/spack/modules/linux-centos7-x86_64/ #start JupyterLab kernel made for spack jupyter kernelspec install --user /srv/jupyterlab_kernels/int/release20210930/spack_python_kernel_release_20210930/ diff --git a/create_JupyterLab_kernel.sh b/create_JupyterLab_kernel.sh index f819f00c..3f159d1f 100644 --- a/create_JupyterLab_kernel.sh +++ b/create_JupyterLab_kernel.sh @@ -19,7 +19,7 @@ spack repo add /srv/$INSTALLATION_ROOT/ebrains-spack-builds # no need to activate as the env is already activated in the context it is used #spack env activate $SPACKIFIED_ENV -module use /srv/$INSTALLATION_ROOT/spack/share/spack/modules/linux-centos7-broadwell/ +module use /srv/$INSTALLATION_ROOT/spack/share/spack/modules/linux-centos7-x86_64/ source /srv/$INSTALLATION_ROOT/spack/var/spack/environments/$SPACKIFIED_ENV/loads # add also user's .local python3.8 packages to allow package installation at runtime # by the user using pip diff --git a/load_sim_tools.sh b/load_sim_tools.sh index 52765ec7..adb774a9 100644 --- a/load_sim_tools.sh +++ b/load_sim_tools.sh @@ -18,7 +18,7 @@ cd /srv/$INSTALLATION_ROOT spack repo add ebrains-spack-builds spack env activate $SPACKIFIED_ENV -module use /srv/$INSTALLATION_ROOT/spack/share/spack/modules/linux-centos7-broadwell/ +module use /srv/$INSTALLATION_ROOT/spack/share/spack/modules/linux-centos7-x86_64/ source /srv/$INSTALLATION_ROOT/spack/var/spack/environments/$SPACKIFIED_ENV/loads echo "Everything ready!" -- GitLab