From 0ee85a9808f9214c68f5b849104baf1b875aa784 Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Wed, 23 Oct 2024 11:45:40 -0400 Subject: [PATCH] nvToolsExt -> nvtx3 --- cmake/tiledarray-config.cmake.in | 2 +- external/cuda.cmake | 2 +- src/CMakeLists.txt | 2 +- src/TiledArray/external/device.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/tiledarray-config.cmake.in b/cmake/tiledarray-config.cmake.in index c6d0a49822..7afccb273b 100644 --- a/cmake/tiledarray-config.cmake.in +++ b/cmake/tiledarray-config.cmake.in @@ -49,7 +49,7 @@ set(TILEDARRAY_HAS_CUDA "@CUDA_FOUND@") if(TILEDARRAY_HAS_CUDA) cmake_minimum_required(VERSION 3.17) if (NOT TARGET CUDA::cublas) - find_dependency(CUDAToolkit REQUIRED COMPONENTS cublas nvToolsExt) + find_dependency(CUDAToolkit REQUIRED COMPONENTS cublas nvtx3) endif(NOT TARGET CUDA::cublas) set(CMAKE_CUDA_HOST_COMPILER "@CMAKE_CUDA_HOST_COMPILER@") # workaround from https://gitlab.kitware.com/cmake/cmake/issues/18614#note_485631 diff --git a/external/cuda.cmake b/external/cuda.cmake index aa1e51e53e..74bd953e65 100644 --- a/external/cuda.cmake +++ b/external/cuda.cmake @@ -26,7 +26,7 @@ set(TILEDARRAY_HAS_CUDA 1 CACHE BOOL "Whether TiledArray has CUDA support") # NB CUDAToolkit does NOT have COMPONENTS find_package(CUDAToolkit REQUIRED) -foreach (library cublas;nvToolsExt) +foreach (library cublas;nvtx3) if (NOT TARGET CUDA::${library}) message(FATAL_ERROR "CUDA::${library} not found") endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a16c05d0b2..30ff478384 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -277,7 +277,7 @@ if(CUDA_FOUND OR HIP_FOUND) endforeach() # the list of libraries on which TiledArray depends on - list(APPEND _TILEDARRAY_DEPENDENCIES CUDA::cudart CUDA::cublas CUDA::nvToolsExt) + list(APPEND _TILEDARRAY_DEPENDENCIES CUDA::cudart CUDA::cublas CUDA::nvtx3) endif(CUDA_FOUND) diff --git a/src/TiledArray/external/device.h b/src/TiledArray/external/device.h index 4f9d365e0a..a4885bc175 100644 --- a/src/TiledArray/external/device.h +++ b/src/TiledArray/external/device.h @@ -36,7 +36,7 @@ #elif defined(TILEDARRAY_HAS_CUDA) #include #include -#include +#include #include #include #endif