Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-kan committed Nov 20, 2024
1 parent f852fee commit 819680d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ rm -rf /var/lib/apt/lists/*
$(dirname $SCC_SETUP_ENV)/init-env.sh ${SCC_SPACK_TAG}
cp -r $(dirname $SCC_SETUP_ENV)/../../lib $(dirname $SCC_SETUP_ENV)/../../../spack
. $(dirname $SCC_SETUP_ENV)/../../../spack/share/spack/setup-env.sh
spack config --scope=site add "packages:all:target:["${SCC_TARGET}"]"
# Ensure generic targets for maximum matching with buildcaches
spack config --scope site add "packages:all:require:["${SCC_TARGET}"]"
$(dirname $SCC_SETUP_ENV)/init-default-compiler.sh "[email protected] target=x86_64_v3 os=ubuntu22.04" "[email protected]%[email protected]+binutils" "[email protected]"
spack env create sccenv $(dirname $SCC_SETUP_ENV)/../../spack.yaml
spack env activate -p sccenv
Expand Down
2 changes: 1 addition & 1 deletion share/sysu-scc-spack-repo/init-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ python3 -c "from tarfile import open;from urllib.request import urlopen;open(mod
mv $(dirname $SCC_SETUP_ENV)/../../../spack-$1/spack-* $(dirname $SCC_SETUP_ENV)/../../../spack
rm -rf $(dirname $SCC_SETUP_ENV)/../../../spack-$1
. $(dirname $SCC_SETUP_ENV)/../../../spack/share/spack/setup-env.sh
spack config --scope site add "concretizer:targets:granularity:generic"
spack mirror add --scope=site $1 https://binaries.spack.io/$1
spack mirror add --scope=site E4S https://cache.e4s.io
spack buildcache keys --install --trust
spack repo add --scope=site $(dirname $SCC_SETUP_ENV)/../..

0 comments on commit 819680d

Please sign in to comment.