2022-12-20 18:20:14 +00:00
|
|
|
1. on Cori GPU, load necessary modules
|
2022-12-20 18:33:24 +00:00
|
|
|
source ./load_cgpu_modules.sh
|
2022-12-20 18:10:27 +00:00
|
|
|
|
|
|
|
2. run bootstrap scrip
|
|
|
|
./bootstrap.sh
|
|
|
|
|
2022-12-20 18:20:14 +00:00
|
|
|
3. Create a build directory, for example,
|
|
|
|
mkdir build-cgpu
|
|
|
|
|
|
|
|
3. run configure script in the build directory
|
|
|
|
cd build-cgpu
|
2022-12-20 18:10:27 +00:00
|
|
|
sh config-command
|
|
|
|
|
2022-12-20 18:20:14 +00:00
|
|
|
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"
|
|
|
|
|
2022-12-20 18:10:27 +00:00
|
|
|
4. compile
|
|
|
|
make -j8
|