35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From 710c4a97891a17b7c8a6ecde01c9ab747becc69b Mon Sep 17 00:00:00 2001
|
|
From: Renjith Ravindran <Renjith.RavindranKannath@amd.com>
|
|
Date: Tue, 13 Feb 2024 06:47:02 +0000
|
|
Subject: [PATCH] adding roctracer-dev include and library path
|
|
|
|
---
|
|
src/CMakeLists.txt | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 7866ad1..8c83b3b 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -714,6 +714,8 @@ set(MIOPEN_CK_LINK_FLAGS composable_kernel::device_operations hip::host)
|
|
endif()
|
|
|
|
target_include_directories(MIOpen SYSTEM PUBLIC $<BUILD_INTERFACE:${HALF_INCLUDE_DIR}>)
|
|
+target_include_directories(MIOpen SYSTEM PUBLIC "${NLOHMANN_JSON_INCLUDE}")
|
|
+target_include_directories(MIOpen SYSTEM PUBLIC "${ROCTRACER_INCLUDE_DIR}")
|
|
target_include_directories(MIOpen SYSTEM PRIVATE ${BZIP2_INCLUDE_DIR})
|
|
# Workaround : change in rocm-cmake was causing linking error so had to add ${CMAKE_DL_LIBS}
|
|
# We can remove ${CMAKE_DL_LIBS} once root cause is identified.
|
|
@@ -855,7 +857,7 @@ if(NOT WIN32 AND NOT APPLE)
|
|
endif()
|
|
|
|
if(NOT WIN32)
|
|
- target_link_libraries(MIOpen PRIVATE roctx64)
|
|
+ target_link_libraries(MIOpen PRIVATE "${ROCTRACER_LIB_DIR}/libroctx64.so")
|
|
endif()
|
|
|
|
############################################################
|
|
--
|
|
2.39.3
|
|
|