Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading