Skip to content

Commit

Permalink
cmake: link targets to roctracer
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli committed Sep 26, 2024
1 parent 54b56ca commit 5c6ace8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ target_link_libraries(sirius_cxx PUBLIC ${GSL_LIBRARY}
$<$<BOOL:${SIRIUS_USE_MEMORY_POOL}>:umpire>
$<TARGET_NAME_IF_EXISTS:CUDA::nvToolsExt>
$<TARGET_NAME_IF_EXISTS:sirius::roctx>
$<TARGET_NAME_IF_EXISTS:sirius::roctracer>
$<TARGET_NAME_IF_EXISTS:sirius::cudalibs>
$<$<BOOL:${SIRIUS_USE_ROCM}>:roc::rocsolver>
$<$<BOOL:${SIRIUS_USE_ROCM}>:roc::rocblas>
Expand Down

0 comments on commit 5c6ace8

Please sign in to comment.