File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 3838 which nvcc
3939 mkdir build
4040 cd build
41- cmake -DApps_BUILD_TESTS=ON -DKokkos_CUDA_ARCH_NAME=Kokkos_ARCH_VOLTA70 ..
41+ cmake -DApps_BUILD_TESTS=ON -DKokkos_CUDA_ARCH_NAME=VOLTA70 ..
4242 make
4343 echo "Compilation complete."
4444
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ build-job:
9393 - which nvcc
9494 - mkdir -p build
9595 - cd build
96- - cmake -DApps_BUILD_TESTS=ON -DNCORES=8 -DKokkos_CUDA_ARCH_NAME=Kokkos_ARCH_VOLTA70 ..
96+ - cmake -DApps_BUILD_TESTS=ON -DNCORES=8 -DKokkos_CUDA_ARCH_NAME=VOLTA70 ..
9797 - make
9898 after_script :
9999 - echo "=== ccache statistics ==="
@@ -365,7 +365,7 @@ manual-trigger:
365365 - git clean -ffdx
366366 - mkdir -p build
367367 - cd build
368- - cmake -DApps_BUILD_TESTS=ON -DKokkos_CUDA_ARCH_NAME=Kokkos_ARCH_VOLTA70 ..
368+ - cmake -DApps_BUILD_TESTS=ON -DKokkos_CUDA_ARCH_NAME=VOLTA70 ..
369369 - make -j$(nproc)
370370 - ccache --show-stats || true
371371 when : manual
Original file line number Diff line number Diff line change 2525include (ExternalProject )
2626
2727if (NOT "${Kokkos_CUDA_ARCH_NAME} " STREQUAL "" )
28- set (Kokkos_CUDA_ARCH_NAME_OPT "-D ${Kokkos_CUDA_ARCH_NAME} =ON" )
28+ set (Kokkos_CUDA_ARCH_NAME_OPT "-DKokkos_ARCH_ ${Kokkos_CUDA_ARCH_NAME} =ON" )
2929else ()
30+ message (WARNING "CUDA arch name not specified.\n An attempt will be made to determine CUDA arch.\n CUDA arch name can be sepcified with CLI option -DKokkos_CUDA_ARCH_NAME=<NAME> (recommended)." )
3031 set (Kokkos_CUDA_ARCH_NAME_OPT "" )
3132endif ()
33+
3234ExternalProject_Add (
3335 Kokkos
3436 GIT_REPOSITORY ${LIBRA_KOKKOS_GIT_REPOSITORY}
You can’t perform that action at this time.
0 commit comments