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

Update HOWTO with an example config-command

This commit is contained in:
Meifeng Lin 2022-12-20 10:20:14 -08:00
parent 36ffe79093
commit ed723909a2

18
HOWTO
View File

@ -1,11 +1,25 @@
1. Load necessary modules
1. on Cori GPU, load necessary modules
sh ./load_cgpu_modules.sh
2. run bootstrap scrip
./bootstrap.sh
3. run configure script
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