1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00
Grid/HOWTO

26 lines
678 B
Plaintext
Raw Normal View History

1. on Cori GPU, load necessary modules
2022-12-20 18:33:24 +00:00
source ./load_cgpu_modules.sh
2. run bootstrap scrip
./bootstrap.sh
3. Create a build directory, for example,
mkdir build-cgpu
3. run configure script in the build directory
cd build-cgpu
sh config-command
Example config-command for single-GPU omp offload:
../configure \
--enable-comms=none \
--enable-simd=GEN \
--enable-gen-simd-width=16 \
CXX=clang++ \
LDFLAGS="-L${CUDA_ROOT}/lib64 -lcudart" \
CXXFLAGS="-Wno-unknown-cuda-version -I${CUDA_ROOT}/include -fopenmp -std=c++14 -fopenmp-cuda-mode -O3 -g -fopenmp-targets=nvptx64-nvidia-cuda -Wformat -DOMPTARGET -DOMPTARGET_MANAGED"
4. compile
make -j8