mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
Spack rules
This commit is contained in:
parent
2111e7ab5f
commit
2207309f8a
44
scripts/prequisites.sh
Executable file
44
scripts/prequisites.sh
Executable file
@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $1 = "install" ]
|
||||
then
|
||||
dir=`pwd`
|
||||
cd $HOME
|
||||
git clone -c feature.manyFiles=true https://github.com/spack/spack.git
|
||||
source $HOME/spack/share/spack/setup-env.sh
|
||||
|
||||
spack install autoconf
|
||||
spack install automake
|
||||
spack install c-lime cppflags=-fPIE
|
||||
spack install fftw
|
||||
spack install llvm
|
||||
spack install gmp
|
||||
spack install mpfr
|
||||
spack install cuda@11.8
|
||||
spack install openmpi
|
||||
spack install openssl
|
||||
spack install hdf5
|
||||
else
|
||||
source $HOME/spack/share/spack/setup-env.sh
|
||||
fi
|
||||
|
||||
spack load autoconf
|
||||
spack load automake
|
||||
spack load c-lime
|
||||
spack load fftw
|
||||
spack load llvm
|
||||
spack load gmp
|
||||
spack load mpfr
|
||||
spack load cuda@11.8
|
||||
spack load openmpi
|
||||
spack load openssl
|
||||
spack load hdf5
|
||||
|
||||
export FFTW=`spack find --paths fftw | grep ^fftw | awk '{print $2}' `
|
||||
export HDF5=`spack find --paths hdf5 | grep ^hdf5 | awk '{print $2}' `
|
||||
export CLIME=`spack find --paths c-lime | grep ^c-lime | awk '{print $2}' `
|
||||
export MPFR=`spack find --paths mpfr | grep ^mpfr | awk '{print $2}' `
|
||||
export GMP=`spack find --paths gmp | grep ^gmp | awk '{print $2}' `
|
||||
export NVIDIA=$CUDA_HOME
|
||||
export NVIDIALIB=$NVIDIA/targets/x86_64-linux/lib/
|
||||
export LD_LIBRARY_PATH=$NVIDIALIB:$FFTW/lib/:$MPFR/lib:$LD_LIBRARY_PATH
|
Loading…
Reference in New Issue
Block a user