diff --git a/CMakeLists.txt b/CMakeLists.txt index 034f47c89..3791c092e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,12 +188,17 @@ if(KOKKOSTOOLS_HAS_VARIORUM) endif() # GPU profilers -if(Kokkos_ENABLE_CUDA) +if(KOKKOSTOOLS_HAS_NVTX) add_subdirectory(profiling/nvtx-connector) add_subdirectory(profiling/nvtx-focused-connector) +else() + message(STATUS "Skipping nvtx-connector: NVTX is not enabled (maybe Kokkos was not found, or not configured with the CUDA backend)") + message(STATUS "Skipping nvtx-focused-connector: NVTX is not enabled (maybe Kokkos was not found, or not configured with the CUDA backend)") endif() -if(Kokkos_ENABLE_HIP) +if(KOKKOSTOOLS_HAS_ROCTX) add_subdirectory(profiling/roctx-connector) +else() + message(STATUS "Skipping roctx-connector: ROCTX is not enabled (maybe Kokkos was not found, or not configured with the HIP backend)") endif() if(KOKKOSTOOLS_HAS_VTUNE)