-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c9cb91
commit 3567abf
Showing
9 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
echo Base directory: ${2?"Second arg: base directory for build"} | ||
|
||
mkdir -p $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
if [ -z $SETUPDONE ]; then . ShellSetup.sh $* ; fi | ||
|
||
cd $RUNDIR | ||
git clone https://github.com/JCSDA/spack-stack -b develop spack-stack-build-cache-${RUNID} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
if [ -z $SETUPDONE ]; then . ShellSetup.sh $* ; fi | ||
|
||
cd $RUNDIR/spack-stack-build-cache-$RUNID | ||
|
||
. setup.sh | ||
|
||
for compiler in $COMPILERS; do | ||
spack stack create env --name build-$compiler --template unified-dev --platform $PLATFORM | ||
cd envs/build-$compiler | ||
sed -i "s|- compilers: \['%.*|- compilers: ['%$compiler']|" spack.yaml | ||
# Check for duplicates and fail before doing the "real" concretization with test deps: | ||
spack concretize --fresh 2>&1 | tee log.concretize | ||
${SPACK_STACK_DIR:?}/utils/show_duplicate_packages.py -d -i crtm log.concretize | ||
spack concretize --force --fresh --test all 2>&1 | tee log.concretize_test | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
if [ -z $SETUPDONE ]; then . ShellSetup.sh $* ; fi | ||
|
||
cd $RUNDIR/spack-stack-build-cache-${RUNID} | ||
|
||
. setup.sh | ||
|
||
installopts="--show-log-on-error" | ||
|
||
for compiler in $COMPILERS; do | ||
cd envs/build-$compiler | ||
spack env activate . | ||
# Just install the packages we're testing (+dependencies): | ||
spack install $installopts --test root $PACKAGESTOTEST 2>&1 | tee log.install_withtesting | ||
# Install the rest of the stack as usual: | ||
spack install $installopts 2>&1 | tee log.install | ||
done |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Concretization for deployments should be done with `spack concretize --fresh` so as to ensure that the stack would concretize the same way if the build cache weren't there. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
echo Run ID: ${1?"First arg: Unique run ID"} | ||
echo Base directory: ${2?"Second arg: base directory for build"} | ||
echo Platform name: ${3?"Third arg: platform name ('hera', 'hercules', etc.)"} | ||
|
||
export RUNID=$1 | ||
export BASEDIR=$2 | ||
export PLATFORM=$3 | ||
|
||
if [ ${BASEDIR::1} != "/" ]; then | ||
echo "FATAL ERROR: Directory should be an absolute path!" | ||
exit 1 | ||
fi | ||
|
||
export COMPILERS=intel | ||
|
||
export PACKAGESTOTEST="libpng libaec jasper scotch w3emc bacio g2 g2c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
. ShellSetup.sh $* | ||
|
||
export SETUPDONE=YES | ||
|
||
|