mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-03 18:55:56 +01:00
Example of Useful prerequisite installs with spack
This commit is contained in:
parent
199818bd6c
commit
882a217074
17
systems/spack-linux/config-command
Normal file
17
systems/spack-linux/config-command
Normal file
@ -0,0 +1,17 @@
|
||||
../../src/Grid/configure \
|
||||
--prefix /home/pab/NPR/install \
|
||||
--enable-comms=mpi-auto \
|
||||
--enable-simd=AVX2 \
|
||||
--enable-shm=none \
|
||||
--enable-debug \
|
||||
--with-lime=$CLIME \
|
||||
--with-hdf5=$HDF5 \
|
||||
--with-fftw=$FFTW \
|
||||
--with-gmp=$GMP \
|
||||
--with-mpfr=$MPFR \
|
||||
--disable-gparity \
|
||||
--disable-fermion-reps \
|
||||
CXX=clang++ \
|
||||
MPICXX=mpicxx \
|
||||
CXXFLAGS="-std=c++17 "
|
||||
|
28
systems/spack-linux/sourceme.sh
Normal file
28
systems/spack-linux/sourceme.sh
Normal file
@ -0,0 +1,28 @@
|
||||
source $HOME/spack/share/spack/setup-env.sh
|
||||
spack load llvm@12
|
||||
spack load autoconf%clang@12.0.1
|
||||
spack load automake%clang@12.0.1
|
||||
spack load c-lime%clang@12.0.1
|
||||
spack load fftw%clang@12.0.1
|
||||
spack load gmp%clang@12.0.1
|
||||
spack load mpfr%clang@12.0.1
|
||||
spack load openmpi%clang@12.0.1
|
||||
spack load openssl%clang@12.0.1
|
||||
spack load hdf5+cxx%clang@12.0.1
|
||||
spack load cmake%clang@12.0.1
|
||||
export FFTW=`spack find --paths fftw%clang@12.0.1 | grep ^fftw | awk '{print $2}' `
|
||||
export HDF5=`spack find --paths hdf5+cxx%clang@12.0.1 | grep ^hdf5 | awk '{print $2}' `
|
||||
export CLIME=`spack find --paths c-lime%clang@12.0.1 | grep ^c-lime | awk '{print $2}' `
|
||||
export MPFR=`spack find --paths mpfr%clang@12.0.1 | grep ^mpfr | awk '{print $2}' `
|
||||
export LLVM=`spack find --paths llvm@12 | grep ^llvm | awk '{print $2}' `
|
||||
export OPENSSL=`spack find --paths openssl%clang@12.0.1 | grep openssl | awk '{print $2}' `
|
||||
export GMP=`spack find --paths gmp%clang@12.0.1 | grep ^gmp | awk '{print $2}' `
|
||||
export TCLAP=`spack find --paths tclap%clang@12.0.1 | grep ^tclap | awk '{print $2}' `
|
||||
export LD_LIBRARY_PATH=${TCLAP}/lib:$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=$MPFR/lib:$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=$GMP/lib:$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=$FFTW/lib:$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=$LLVM/lib:$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=$LLVM/lib/x86_64-unknown-linux-gnu/:$LD_LIBRARY_PATH
|
||||
|
||||
ulimit -s 81920
|
19
systems/spack-linux/spack-install
Normal file
19
systems/spack-linux/spack-install
Normal file
@ -0,0 +1,19 @@
|
||||
cd
|
||||
git clone https://github.com/spack/spack.git
|
||||
source $HOME/spack/share/spack/setup-env.sh
|
||||
|
||||
spack install llvm@12
|
||||
|
||||
spack install autoconf%clang@12.0.1
|
||||
spack install automake%clang@12.0.1
|
||||
spack install c-lime%clang@12.0.1
|
||||
spack install fftw%clang@12.0.1
|
||||
spack install gmp%clang@12.0.1
|
||||
spack install mpfr%clang@12.0.1
|
||||
spack install openmpi%clang@12.0.1
|
||||
spack install openssl%clang@12.0.1
|
||||
spack install hdf5+cxx%clang@12.0.1
|
||||
spack install cmake%clang@12.0.1
|
||||
spack install tclap%clang@12.0.1
|
||||
spack install emacs%clang@12.0.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user