Skip to content

Commit

Permalink
nvToolsExt -> nvtx3
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Oct 23, 2024
1 parent 3b4baf7 commit 0ee85a9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/tiledarray-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion external/cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/TiledArray/external/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#elif defined(TILEDARRAY_HAS_CUDA)
#include <cuda.h>
#include <cuda_runtime.h>
#include <nvToolsExt.h>
#include <nvtx3/nvToolsExt.h>
#include <thrust/system/cuda/error.h>
#include <thrust/system_error.h>
#endif
Expand Down

0 comments on commit 0ee85a9

Please sign in to comment.