Commit 64d37d27 authored by Philip Carns's avatar Philip Carns

put packages.yaml in SPACK_ROOT

- this is safer for use in environments like continuous integration where we don't want to
  perturb any persistent configuration
parent bab9cc29
......@@ -12,52 +12,14 @@ git clone git@xgitlab.cels.anl.gov:sds/sds-repo
spack repo add .
```
# edit .spack/cray/packages.yaml to look like this:
# The important things are to use the existing compiler and MPI library
```
packages:
mpich:
modules:
mpich@7.7.2 arch=cray-cnl6-mic_knl: cray-mpich/7.7.2
buildable: False
autoconf:
paths:
autoconf@2.69: /usr
buildable: False
m4:
paths:
m4@1.4.16: /usr
buildable: False
automake:
paths:
automake@1.13.4: /usr
buildable: False
pkg-config:
paths:
pkg-config@0.29: /usr
buildable: False
libtool:
paths:
libtool@2.4.2: /usr
buildable: False
perl:
paths:
perl@5.18.2: /usr
buildable: False
cmake:
paths:
cmake@3.5.2: /usr
buildable: False
ssg:
variants: +mpi
libfabric:
variants: fabrics=gni
all:
providers:
mpi: [mpich]
This directory contains a packages.yaml that should be copied to one of the spack
configuration locations documented here: https://spack.readthedocs.io/en/stable/configuration.html . This could be your ~/.spack/cray/ directory, for example.
The automation scripts in this directory use $SPACK_ROOT/etc/spack to avoid
perturbing the account on which the regression tests are executed.
```
# compile everything and load module for ssg
spack install ssg
# you may need to re-run setup-env.sh before loading to avoid some problems with finding modules
spack load -r ssg
```
packages:
mpich:
modules:
mpich@7.7.2 arch=cray-cnl6-mic_knl: cray-mpich/7.7.2
buildable: False
autoconf:
paths:
autoconf@2.69: /usr
buildable: False
m4:
paths:
m4@1.4.16: /usr
buildable: False
automake:
paths:
automake@1.13.4: /usr
buildable: False
pkg-config:
paths:
pkg-config@0.29: /usr
buildable: False
libtool:
paths:
libtool@2.4.2: /usr
buildable: False
perl:
paths:
perl@5.18.2: /usr
buildable: False
cmake:
paths:
cmake@3.5.2: /usr
buildable: False
ssg:
variants: +mpi
libfabric:
variants: fabrics=gni
all:
providers:
mpi: [mpich]
......@@ -23,6 +23,7 @@ JOBDIR=~/tmp/mochi-regression-job-$$
# scratch area to clone and build things
mkdir -p $SANDBOX
cp spack-shell.patch $SANDBOX/
cp packages.yaml $SANDBOX/
# scratch area for job submission
mkdir -p $JOBDIR
......@@ -42,6 +43,7 @@ cd $SANDBOX/spack
patch -p1 < ../spack-shell.patch
export SPACK_SHELL=bash
. $SANDBOX/spack/share/spack/setup-env.sh
cp $SANDBOX/packages.yaml $SPACK_ROOT/etc/spack
spack repo add $SANDBOX/sds-repo
spack uninstall -R -y argobots mercury libfabric | true
spack install ssg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment