aws-samples / aws-parallelcluster-hpc-quickstart

MIT No Attribution
15 stars 12 forks source link

Add optimized spack recipe for WRF on hpc6a #95

Open mhuguesaws opened 1 year ago

mhuguesaws commented 11 months ago

Install Spack v0.20

 export SPACK_ROOT=/shared/spack
 git clone -c feature.manyFiles=true -b releases/v0.20 https://github.com/spack/spack $SPACK_ROOT
 echo "export SPACK_ROOT=$SPACK_ROOT" >> $HOME/.bashrc
 echo "source \$SPACK_ROOT/share/spack/setup-env.sh" >> $HOME/.bashrc
 source $HOME/.bashrc

Add Spack cache

spack mirror add v0.20.1 https://binaries.spack.io/v0.20.1
spack buildcache keys --install --trust

Install WRF 4.4.2

spack compiler find
spack install wrf@4.4.2 build_type=dm+sm