-
Notifications
You must be signed in to change notification settings - Fork 2
kokkosPagani inline build
isaki001 edited this page Jun 11, 2021
·
1 revision
After cloning kokkosPagani, clone Kokkos and Kokkos-kernels at the top level of that directory with the following commands:
- For Kokkos: git submodule add https://github.com/kokkos/kokkos.git
- For Kokkos-kernels:git submodule add https://github.com/kokkos/kokkos-kernels.git
Then create a build directory. From within the build directory:
cmake ../ -DKokkos_ENABLE_CUDA=ON -DKokkos_ENABLE_OPENMP=OFF -DKokkos_ENABLE_CUDA_LAMBDA=ON -DKokkos_ARCH_VOLTA70=ON -DKokkos_ENABLE_CUDA_UVM=OFF
Furthermore, set the following environment variables:
export CUDA_LAUNCH_BLOCKING=1 export CUDA_MANAGED_FORCE_DEVICE_ALLOC=1