Skip to content

Commit

Permalink
Add spack.yaml file and environment setup script for Gilgamesh
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeekman committed Nov 26, 2024
1 parent 30f2453 commit 7b3727e
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
14 changes: 14 additions & 0 deletions activate-salt-fm-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
echo "purging loaded modules"
module purge
echo "listing loaded modules:"
module list
#echo "loading llvm and mpich:"
echo "loading llvm and gcc:"
module load llvm/git.086d8e6bb5daf8de43880ba90258c49e0fabf2c9_19.1.4-zpacv56
#module load mpich/4.2.3-ugxzfxf
module load gcc/14.2.0-ttkqi3s
#module load tau/master-l3jx42k
export LD_LIBRARY_PATH="/storage/packages/salt-fm/spack/opt/spack/linux-centos7-x86_64/gcc-10.2.1/gcc-14.2.0-ttkqi3sp7xwrxtwftfysf54cl4jje4qk/lib64:$LD_LIBRARY_PATH"
echo "listing loaded modules:"
module list
echo "Finished"
50 changes: 50 additions & 0 deletions spack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# export SALT_ROOT=/storage/packages/salt-fm
# export PATH=$SALT_ROOT/base/tools/bin:$PATH
# module use /storage/packages/salt-fm/spack/share/spack/modules/linux-rhel8-x86_64
# module use /storage/packages/salt-fm/spack/share/spack/modules/linux-centos7-x86_64/

spack:
view: false

concretizer:
reuse: false
unify: true

packages:
all:
require: "target=x86_64 %gcc"

modules:
default:
enable:
- tcl
tcl:
projections:
all: '{name}/{version}'
verbose: true
all:
autoload: direct
environment:
set:
'{name}_ROOT': '{PREFIX}'

compilers:
- compiler:
spec: gcc@=14.2.0
paths:
cc: /storage/packages/salt-fm/spack/opt/spack/linux-centos7-x86_64/gcc-10.2.1/gcc-14.2.0-ttkqi3sp7xwrxtwftfysf54cl4jje4qk/bin/gcc
cxx: /storage/packages/salt-fm/spack/opt/spack/linux-centos7-x86_64/gcc-10.2.1/gcc-14.2.0-ttkqi3sp7xwrxtwftfysf54cl4jje4qk/bin/g++
f77: /storage/packages/salt-fm/spack/opt/spack/linux-centos7-x86_64/gcc-10.2.1/gcc-14.2.0-ttkqi3sp7xwrxtwftfysf54cl4jje4qk/bin/gfortran
fc: /storage/packages/salt-fm/spack/opt/spack/linux-centos7-x86_64/gcc-10.2.1/gcc-14.2.0-ttkqi3sp7xwrxtwftfysf54cl4jje4qk/bin/gfortran
flags: {}
operating_system: rhel8
target: x86_64
modules: []
environment: {}
extra_rpaths: []

specs:
- [email protected]=19.1.4 +flang +mlir openmp=project
# - tau@master%[email protected]~adios2+binutils~comm~craycnl~cuda~disable-no-pie~dyninst+elf+fortran~gasnet+io~level_zero+libdwarf+libunwind+mpi~ompt~opari~opencl+openmp+otf2+papi+pdt~phase~ppc64le~profileparam+pthreads~python~rocm~rocprofiler~rocprofv2~roctracer~scorep~shmem~sqlite~syscall~x86_64 build_system=generic arch=linux-rhel8-x86_64
- tau@master +mpi +openmp cflags=-Wno-error=implicit-function-declaration
- mpich ~wrapperrpath

0 comments on commit 7b3727e

Please sign in to comment.