Spack Prototype for PSI
This commit is contained in:
@@ -4,11 +4,9 @@ variables:
|
||||
GIT_STRATEGY: clone
|
||||
MAX_JOB_NB: 4
|
||||
SPACK_BRANCH: develop
|
||||
SPACK_COMPILER: gcc
|
||||
SPACK_PCKG_VERSION: develop
|
||||
SPACK_PCKG: py-hiqsimulator
|
||||
SPACK_PCKG: ffbidx
|
||||
SPACK_PCKG_VERSION: main
|
||||
SPACK_REPO: https://github.com/spack/spack.git
|
||||
SPACK_SPEC: ${SPACK_PCKG}@${SPACK_PCKG_VERSION}%${SPACK_COMPILER}
|
||||
|
||||
build_test:
|
||||
tags:
|
||||
@@ -17,13 +15,18 @@ build_test:
|
||||
script:
|
||||
- git clone ${SPACK_REPO} -b ${SPACK_BRANCH}
|
||||
- . "./spack/share/spack/setup-env.sh"
|
||||
- source /opt/psi/config/profile.bash
|
||||
- module load git-lfs
|
||||
- spack clean -a # Make sure spack doesn't have any caches left
|
||||
- spack env activate --without-view env/merlin/${SPACK_PCKG}
|
||||
- spack install -j ${MAX_JOB_NB} --add git-lfs ^go@1.18
|
||||
- spack develop ${SPACK_SPEC}
|
||||
- rm -rf /scratch/${USER}/spack-dev/${SPACK_PCKG} # Remove previous packages
|
||||
- spack uninstall -Ray
|
||||
- SPACK_PCKG_LOWERCASE=$(echo "${SPACK_PCKG,,}")
|
||||
- if [[ "$SPACK_PCKG_LOWERCASE" == "hiqsimulator" ]]; then
|
||||
- SPACK_PCKG_LOWERCASE="py-$SPACK_PCKG_LOWERCASE"
|
||||
- fi
|
||||
- spack env activate --without-view env/$(spack arch -o)/${SPACK_PCKG_LOWERCASE}
|
||||
- spack develop --path /scratch/\$user/spack-dev/${SPACK_PCKG} --force ${SPACK_PCKG_LOWERCASE}@${SPACK_PCKG_VERSION}
|
||||
- spack install -j ${MAX_JOB_NB}
|
||||
- spack load ${SPACK_SPEC}
|
||||
- cd env/merlin/${SPACK_PCKG}/${SPACK_PCKG}
|
||||
- ls -la
|
||||
- spack load
|
||||
# - JOB_ID=$(sbatch --parsable ../test/run.slurm)
|
||||
# - cat slurm-${JOB_ID}.out
|
||||
|
||||
Reference in New Issue
Block a user