Skip to content

Commit

Permalink
Merge pull request Azure#609 from Azure/azhop_update
Browse files Browse the repository at this point in the history
Azhop update
  • Loading branch information
xpillons authored Jun 13, 2022
2 parents a7bdce1 + 475bd9c commit 4ebdd03
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
3 changes: 3 additions & 0 deletions experimental/azhop/opm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
. ~/spack/share/spack/setup-env.sh
module use /usr/share/Modules/modulefiles

sudo yum install -y freeglut-devel
spack install boost +system+test+date_time

spack install dune
spack install opm-simulators
24 changes: 19 additions & 5 deletions experimental/azhop/spack/configure.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/bin/bash
OPENMPI_VERSION=4.1.1
HPCX_VERSION=2.9.0
GCC_VERSION=9.2.0

. ~/spack/share/spack/setup-env.sh

echo "Add GCC compiler"
spack compiler find /opt/gcc-9.2.0/
spack compiler find /opt/gcc-$GCC_VERSION/

echo "Configure external MPI packages"
cat <<EOF >~/.spack/packages.yaml
Expand All @@ -13,15 +17,15 @@ packages:
mpi: [openmpi]
openmpi:
externals:
- spec: openmpi@4.1.0%gcc@9.2.0
- spec: openmpi@$OPENMPI_VERSION%gcc@$GCC_VERSION
modules:
- mpi/openmpi-4.1.0
- mpi/openmpi-$OPENMPI_VERSION
buildable: False
hpcx:
externals:
- spec: hpcx@2.8.3%gcc@9.2.0
- spec: hpcx@$HPCX_VERSION%gcc@$GCC_VERSION
modules:
- mpi/hpcx-v2.8.3
- mpi/hpcx-v$HPCX_VERSION
buildable: False
EOF

Expand All @@ -33,3 +37,13 @@ config:
- /mnt/resource/$USER/spack-stage
- ~/.spack/stage
EOF

# from https://techcommunity.microsoft.com/t5/azure-global/spack-in-a-multi-user-hpc-environment-on-azure/ba-p/3438261
spack config --scope defaults add config:build_jobs:32

MICROARCHFILE=$SPACK_ROOT/lib/spack/external/archspec/json/cpu/microarchitectures.json
mv $MICROARCHFILE ${MICROARCHFILE}.orig
cat ${MICROARCHFILE}.orig \
| jq 'del(.microarchitectures.zen3.features[] | select (. == "pku"))' \
| jq 'del(.microarchitectures.zen.features[] | select (. == "clzero"))' \
>$MICROARCHFILE
2 changes: 1 addition & 1 deletion experimental/azhop/spack/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

git clone https://github.com/spack/spack ~/spack
cd ~/spack
git checkout releases/v0.16
git checkout releases/v0.18

0 comments on commit 4ebdd03

Please sign in to comment.