Skip to content

Commit 2708f81

Browse files
committed
Add santis recipe and build script
1 parent 822920a commit 2708f81

File tree

7 files changed

+139
-0
lines changed

7 files changed

+139
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
root: $SCRATCH/uenv-cache
2+
key: $SCRATCH/.keys/.gpg-spack-paraview

recipes/paraview/gh200/compilers.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bootstrap:
2+
3+
gcc:
4+
specs:
5+

recipes/paraview/gh200/config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: prgenv-gnu
2+
spack:
3+
commit: h5hut
4+
repo: /bret/scratch/cscs/biddisco/spack-santis
5+
store: /user-environment
6+
description: ParaView + assorted other tools
7+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
gcc-env:
2+
compiler:
3+
- toolchain: gcc
4+
spec: gcc
5+
mpi:
6+
7+
gpu: cuda
8+
unify: true
9+
specs:
10+
- cmake
11+
- ninja
12+
- direnv
13+
- fftw
14+
- fmt
15+
- stdexec
16+
- boost +atomic +chrono +container +context +coroutine +date_time +filesystem +graph +json +mpi +multithreaded +program_options +regex +serialization +shared +system +test +thread
17+
- hdf5 +mpi
18+
- h5hut
19+
- ninja
20+
- openblas threads=openmp
21+
- blaspp
22+
- lapackpp
23+
24+
25+
26+
- py-pandas
27+
- py-matplotlib
28+
- tbb
29+
- libtheora@master
30+
# - ospray
31+
# We turn off hdf5 because vtk::hdf5 needs the internal hdf5 not the external one
32+
- [email protected] +cuda +mpi ~hdf5 +opengl2 +tbb +raytracing +python use_vtkm=on +development_files build_edition=rendering
33+
variants:
34+
- +mpi
35+
- +cuda
36+
- cuda_arch=90
37+
- ~fortran
38+
- build_type=Release
39+
- cxxstd=20
40+
- ~examples
41+
views:
42+
default:
43+
link: roots
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
default:
2+
features:
3+
- cuda
4+
- mpi
5+
- osu-micro-benchmarks
6+
- openmp
7+
- serial
8+
cc: mpicc
9+
cxx: mpic++
10+
ftn: mpifort
11+
activation: /user-environment/env/default/activate.sh

recipes/paraview/gh200/modules.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
modules:
2+
# Paths to check when creating modules for all module sets
3+
prefix_inspections:
4+
bin:
5+
- PATH
6+
lib:
7+
- LD_LIBRARY_PATH
8+
lib64:
9+
- LD_LIBRARY_PATH
10+
11+
default:
12+
arch_folder: false
13+
# Where to install modules
14+
roots:
15+
tcl: /user-environment/modules
16+
tcl:
17+
all:
18+
autoload: none
19+
hash_length: 0
20+
exclude_implicits: true
21+
exclude: ['%[email protected]', 'gcc %[email protected]']
22+
projections:
23+
all: '{name}/{version}'
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
3+
#SBATCH --job-name=stackinator-paraview
4+
#SBATCH --time=04:00:00
5+
#SBATCH --nodes=1
6+
#SBATCH --partition=normal
7+
#SBATCH --account=csstaff
8+
#SBATCH --output=/users/biddisco/stackinator-output.txt
9+
#SBATCH --error=/users/biddisco/stackinator-error.txt
10+
11+
export PYTHONUNBUFFERED=1
12+
13+
SRC=/users/biddisco/src
14+
CLUSTER=santis
15+
STACKI_DIR=$SRC/alps-vcluster/stackinator
16+
RECIPE_DIR=$SRC/alps-vcluster/alps-spack-stacks/recipes/paraview/gh200
17+
SYSTEM_DIR=$SRC/alps-vcluster/alps-cluster-config/$CLUSTER
18+
BUILD_DIR=/dev/shm/biddisco
19+
20+
echo "# -----------------------------------------"
21+
echo "Setup/clean build dir"
22+
#rm -rf ${BUILD_DIR}/*
23+
mkdir -p ${BUILD_DIR}
24+
mkdir -p ${BUILD_DIR}/tmp
25+
26+
echo "# -----------------------------------------"
27+
echo "Execute stackinator"
28+
$STACKI_DIR/bin/stack-config -s $SYSTEM_DIR -b ${BUILD_DIR} -r $RECIPE_DIR -c $RECIPE_DIR/cache-config.yaml --debug --develop
29+
30+
# if using develop branch of spack, add --develop
31+
#$STACKI_DIR/bin/stack-config -s $SYSTEM_DIR -b ${BUILD_DIR} -r $RECIPE_DIR -c $RECIPE_DIR/cache-config.yaml --debug --develop
32+
33+
# build the squashfs image - bubblewrap is used inside the makefile
34+
echo "# -----------------------------------------"
35+
echo "Trigger build"
36+
cd /dev/shm/biddisco
37+
env --ignore-environment PATH=/usr/bin:/bin:`pwd`/spack/bin HOME=$HOME https_proxy=$https_proxy http_proxy=$http_proxy no_proxy="$no_proxy" make store.squashfs -j32
38+
39+
echo "# -----------------------------------------"
40+
echo "Copy generated squashfs file"
41+
DATE=$(date +%F)
42+
cp /dev/shm/biddisco/store.squashfs $SCRATCH/$CLUSTER-paraview-$DATE.squashfs
43+
44+
# -----------------------------------------
45+
# debug : create a shell using the spack setup used to create the squashfs
46+
# -----------------------------------------
47+
# $BUILD_DIR/bwrap-mutable-root.sh --tmpfs ~ --bind $BUILD_DIR/tmp /tmp --bind $BUILD_DIR/store /user-environment env --ignore-environment PATH=/usr/bin:/bin:`pwd`/spack/bin SPACK_SYSTEM_CONFIG_PATH=/user-environment/config /bin/bash --norc --noprofile
48+

0 commit comments

Comments
 (0)