Skip to content

add rocTracer include directory #2082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ endif()

if(HIPBLASLT_ENABLE_MARKER)
find_library(rocTracer roctx64)
find_path(ROCTRACER_INCLUDE_DIR "roctracer/roctx.h")
if(NOT rocTracer)
message(FATAL_ERROR "roctracer not found, but HIPBLASLT_ENABLE_MARKER is enabled")
endif()
Expand Down
3 changes: 2 additions & 1 deletion library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ if(NOT BUILD_CUDA)
endif()

if(HIPBLASLT_ENABLE_MARKER)
target_link_libraries(hipblaslt PRIVATE -lroctx64)
target_include_directories(hipblaslt PRIVATE ${ROCTRACER_INCLUDE_DIR})
target_link_libraries(hipblaslt PRIVATE ${rocTracer})
endif()

if( NOT BUILD_CUDA AND NOT LEGACY_HIPBLAS_DIRECT )
Expand Down
1 change: 1 addition & 0 deletions tensilelite/Tensile/Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ option(Tensile_ENABLE_MARKER "ENable roctx marker in Tensile" OFF)

if(Tensile_ENABLE_MARKER)
find_library(rocTracer roctx64)
find_path(ROCTRACER_INCLUDE_DIR "roctracer/roctx.h")
if(NOT rocTracer)
message(FATAL_ERROR "roctracer not found, but Tensile_ENABLE_MARKER is enabled")
endif()
Expand Down
3 changes: 2 additions & 1 deletion tensilelite/Tensile/Source/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ target_include_directories(TensileClient PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/inc
target_link_libraries(TensileClient PRIVATE TensileHost Boost::program_options Boost::filesystem rocm_smi)

if(Tensile_ENABLE_MARKER)
target_link_libraries(TensileClient PRIVATE -lroctx64)
target_include_directories(TensileClient PRIVATE ${ROCTRACER_INCLUDE_DIR})
target_link_libraries(TensileClient PRIVATE ${rocTracer})
endif()

if(TENSILE_USE_OPENMP)
Expand Down