SET(Kokkos_DEVICES SERIAL;CUDA) SET(Kokkos_OPTIONS CUDA_LAMBDA;DEPRECATED_CODE_4;DEPRECATION_WARNINGS;IMPL_REF_COUNT_BRANCH_UNLIKELY;IMPL_MDSPAN;IMPL_SKIP_COMPILER_MDSPAN;COMPLEX_ALIGN) SET(Kokkos_TPLS CUDA;LIBDL) SET(Kokkos_ARCH VOLTA70) SET(Kokkos_CXX_COMPILER "/usr/bin/c++") SET(Kokkos_CXX_COMPILER_ID "NVIDIA") SET(Kokkos_CXX_COMPILER_VERSION "11.7.99") SET(Kokkos_CXX_STANDARD 17) # Required to be a TriBITS-compliant external package IF(NOT TARGET Kokkos::all_libs) # CMake Error at /lib/cmake/Kokkos/KokkosConfigCommon.cmake:10 (ADD_LIBRARY): # ADD_LIBRARY cannot create ALIAS target "Kokkos::all_libs" because target # "Kokkos::kokkos" is imported but not globally visible. IF(CMAKE_VERSION VERSION_LESS "3.18") SET_TARGET_PROPERTIES(Kokkos::kokkos PROPERTIES IMPORTED_GLOBAL ON) ENDIF() ADD_LIBRARY(Kokkos::all_libs ALIAS Kokkos::kokkos) ENDIF() # Export Kokkos_ENABLE_ for each backend that was enabled. # NOTE: "Devices" is a little bit of a misnomer here. These are really # backends, e.g. Kokkos_ENABLE_OPENMP, Kokkos_ENABLE_CUDA, Kokkos_ENABLE_HIP, # or Kokkos_ENABLE_SYCL. FOREACH(DEV ${Kokkos_DEVICES}) SET(Kokkos_ENABLE_${DEV} ON) ENDFOREACH() # Export relevant Kokkos_ENABLE