From 5c6ace8da81b91eb06c9cb708540cdd27f2e0487 Mon Sep 17 00:00:00 2001 From: Simon Pintarelli Date: Tue, 13 Feb 2024 09:58:26 +0100 Subject: [PATCH] cmake: link targets to roctracer --- CMakeLists.txt | 1 + cmake/modules/{FindRocTracer.cmake => FindRoctracer.cmake} | 2 +- src/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) rename cmake/modules/{FindRocTracer.cmake => FindRoctracer.cmake} (93%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 73f46927c..fbde2f024 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,6 +207,7 @@ if(SIRIUS_USE_ROCM) endif() if(SIRIUS_USE_NVTX) find_package(RocTX REQUIRED) + find_package(Roctracer REQUIRED) endif() enable_language(HIP) diff --git a/cmake/modules/FindRocTracer.cmake b/cmake/modules/FindRoctracer.cmake similarity index 93% rename from cmake/modules/FindRocTracer.cmake rename to cmake/modules/FindRoctracer.cmake index 7f77e80f2..74f2ccd00 100644 --- a/cmake/modules/FindRocTracer.cmake +++ b/cmake/modules/FindRoctracer.cmake @@ -12,7 +12,7 @@ find_path(SIRIUS_ROCTRACER_INCLUDE_DIR PATH_SUFFIXES include include/roctracer ) -find_package_handle_standard_args(Roctracer "DEFAULT_MSG" SIRIUS_ROCTRACER_LIBRARIES SIRIUS_ROCTRAVER_INCLUDE_DIR) +find_package_handle_standard_args(Roctracer "DEFAULT_MSG" SIRIUS_ROCTRACER_LIBRARIES SIRIUS_ROCTRACER_INCLUDE_DIR) if(Roctracer_FOUND AND NOT TARGET sirius::roctracer) add_library(sirius::roctracer INTERFACE IMPORTED) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ade0f8f09..09cdbff6a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -120,6 +120,7 @@ target_link_libraries(sirius_cxx PUBLIC ${GSL_LIBRARY} $<$:umpire> $ $ + $ $ $<$:roc::rocsolver> $<$:roc::rocblas>