Skip to content
Snippets Groups Projects
Commit 7078b745 authored by Takumi.Matsunobu's avatar Takumi.Matsunobu
Browse files

Merge remote-tracking branch 'origin/master' into D2_takumi

parents 035738e9 8c74fdb9
No related branches found
No related tags found
No related merge requests found
Pipeline #19034 passed
function _install_spack() {
if [ ! -e ${SPACK_ROOT} ]; then
if ! command -v git &> /dev/null
then
echo "git could not be found ... will try to load it form the module system ..."
module load git || echo "could not load git from module system"
fi
echo "Cloning to ${SPACK_ROOT}"
git clone --depth 1 ${SPACK_URL} -b ${SPACK_BRANCH} ${SPACK_ROOT}
fi
......
......@@ -4,6 +4,9 @@ WORKDIR=%HPCROOTDIR%
ICON_VERSION=%ICON.VERSION%
COMPILER=%SPACK.COMPILER%
MODULES="%MODULES%"
if [ ! -z "${MODULES}" ]; then module load ${MODULES}; fi
# If the workdir directory does not exist create it
if [ ! -d ${WORKDIR} ]; then
mkdir -p ${WORKDIR}
......
......@@ -7,6 +7,10 @@ SPACK_BRANCH=%SPACK.BRANCH%
SPACK_COMPILER=%SPACK.COMPILER%
PYTHON_VERSION=%PYTHON_ENVIRONMENT.PYTHON_VERSION%
MODULES="%MODULES%"
if [ ! -z "${MODULES}" ]; then module load ${MODULES}; fi
# Go to the working directory
cd ${WORKDIR}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment