Skip to content

Instantly share code, notes, and snippets.

@freifrauvonbleifrei
Last active August 8, 2024 06:25
Show Gist options
  • Save freifrauvonbleifrei/4f674aa2dfcd486ce39003bc7dc8f9c2 to your computer and use it in GitHub Desktop.
Save freifrauvonbleifrei/4f674aa2dfcd486ce39003bc7dc8f9c2 to your computer and use it in GitHub Desktop.
Set up private spack on fugaku
#!/usr/bin/env bash
# mainly from https://www.fugaku.r-ccs.riken.jp/doc_root/en/user_guides/FugakuSpackGuide/intro.html
export SPACK_DISABLE_LOCAL_CONFIG=true
export SPACK_USER_CACHE_PATH=/tmp/u13079-spack
# cf . https://www.fugaku.r-ccs.riken.jp/doc_root/en/user_guides/FugakuSpackGuide/intro.html
export PJM_LLIO_GFSCACHE=/vol0004
# use RIKEN spack only on stable branch!
git -C "spack" pull || git clone [email protected]:spack/spack.git
. spack/share/spack/setup-env.sh
cp /vol0004/apps/oss/spack/etc/spack/*.yaml spack/etc/spack/
rm spack/etc/spack/repos.yaml
cat << EOF > spack/etc/spack/upstreams.yaml
upstreams:
spack-public-instance:
install_tree: /vol0004/apps/oss/spack/opt/spack
EOF
spack repo add /vol0004/apps/oss/spack/var/spack/repos/local
spack spec cmake
# this should show no uninstalled dependencies, cmake should now be installable with `spack/bin/spack install cmake`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment