Prompted by spack/spack#45382 (comment)
We should build the NVTX or ROC-TX just based whether we can detect CUDA or ROCm, respectively. It makes little sense to tie this to the setting of Kokkos.
|
# GPU profilers |
|
if(Kokkos_ENABLE_CUDA) |
|
add_subdirectory(profiling/nvtx-connector) |
|
add_subdirectory(profiling/nvtx-focused-connector) |
|
endif() |
|
if(Kokkos_ENABLE_HIP) |
|
add_subdirectory(profiling/roctx-connector) |
|
endif() |
Prompted by spack/spack#45382 (comment)
We should build the NVTX or ROC-TX just based whether we can detect CUDA or ROCm, respectively. It makes little sense to tie this to the setting of Kokkos.
kokkos-tools/CMakeLists.txt
Lines 190 to 197 in 7604355