mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-15 02:05:37 +00:00
31 lines
880 B
Plaintext
31 lines
880 B
Plaintext
spack load c-lime
|
|
spack load gmp
|
|
spack load mpfr
|
|
CLIME=`spack find --paths c-lime | grep c-lime| cut -c 13-`
|
|
GMP=`spack find --paths gmp | grep gmp | cut -c 12-`
|
|
MPFR=`spack find --paths mpfr | grep mpfr | cut -c 13-`
|
|
echo clime X$CLIME
|
|
echo gmp X$GMP
|
|
echo mpfr X$MPFR
|
|
|
|
../../configure \
|
|
--enable-comms=mpi-auto \
|
|
--with-lime=$CLIME \
|
|
--enable-unified=no \
|
|
--enable-shm=nvlink \
|
|
--enable-accelerator=hip \
|
|
--enable-gen-simd-width=64 \
|
|
--enable-simd=GPU \
|
|
--enable-accelerator-cshift \
|
|
--with-gmp=$GMP \
|
|
--with-mpfr=$MPFR \
|
|
--with-fftw=$FFTW_DIR/.. \
|
|
--disable-fermion-reps \
|
|
--disable-gparity \
|
|
CXX=hipcc MPICXX=mpicxx \
|
|
CXXFLAGS="-fPIC --offload-arch=gfx90a -I/opt/rocm/include/ -std=c++17 -I/opt/cray/pe/mpich/8.1.23/ofi/gnu/9.1/include" \
|
|
LDFLAGS="-L/opt/cray/pe/mpich/8.1.23/ofi/gnu/9.1/lib -lmpi -L/opt/cray/pe/mpich/8.1.23/gtl/lib -lmpi_gtl_hsa -lamdhip64 -fopenmp"
|
|
|
|
|
|
|