Include rocm-openmp-extras header and omp library (#36142)
This commit is contained in:
parent
08dc2d4020
commit
4f6f1b620f
@ -1,24 +1,36 @@
|
|||||||
From 2567ef30dea031fb1b894b74294c82856e47b2a6 Mon Sep 17 00:00:00 2001
|
From 14d9b4b238ea55ed2318daa337bb2393f321c457 Mon Sep 17 00:00:00 2001
|
||||||
From: Renjith Ravindran <Renjith.RavindranKannath@amd.com>
|
From: Renjith Ravindran <Renjith.RavindranKannath@amd.com>
|
||||||
Date: Wed, 1 Mar 2023 17:38:17 +0000
|
Date: Wed, 15 Mar 2023 23:36:55 +0000
|
||||||
Subject: [PATCH] Include rocm-openmp-extras headers when tensile using openmp
|
Subject: [PATCH] Include rocm-openmp-extras header and omp library
|
||||||
|
|
||||||
---
|
---
|
||||||
Tensile/Source/client/CMakeLists.txt | 1 +
|
Tensile/Source/client/CMakeLists.txt | 8 ++++++--
|
||||||
1 file changed, 1 insertion(+)
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/Tensile/Source/client/CMakeLists.txt b/Tensile/Source/client/CMakeLists.txt
|
diff --git a/Tensile/Source/client/CMakeLists.txt b/Tensile/Source/client/CMakeLists.txt
|
||||||
index c04a6b7..7001364 100644
|
index f4a13dd..46568b9 100644
|
||||||
--- a/Tensile/Source/client/CMakeLists.txt
|
--- a/Tensile/Source/client/CMakeLists.txt
|
||||||
+++ b/Tensile/Source/client/CMakeLists.txt
|
+++ b/Tensile/Source/client/CMakeLists.txt
|
||||||
@@ -76,6 +76,7 @@ if(NOT WIN32)
|
@@ -76,7 +76,9 @@ if(NOT WIN32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(TENSILE_USE_OPENMP)
|
if(TENSILE_USE_OPENMP)
|
||||||
|
- target_link_libraries(TensileClient PRIVATE custom_openmp_cxx)
|
||||||
+ target_include_directories(TensileClient PUBLIC "${ROCM_OPENMP_EXTRAS_DIR}/include")
|
+ target_include_directories(TensileClient PUBLIC "${ROCM_OPENMP_EXTRAS_DIR}/include")
|
||||||
target_link_libraries(TensileClient PRIVATE custom_openmp_cxx)
|
+ target_link_libraries(TensileClient PRIVATE "${ROCM_OPENMP_EXTRAS_DIR}/lib/libomp.so")
|
||||||
|
+
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
--
|
|
||||||
2.31.1
|
@@ -89,5 +91,7 @@ set_target_properties(tensile_client
|
||||||
|
|
||||||
|
target_link_libraries(tensile_client PRIVATE TensileHost TensileClient ${Boost_LIBRARIES})
|
||||||
|
if(TENSILE_USE_OPENMP)
|
||||||
|
- target_link_libraries(tensile_client PRIVATE custom_openmp_cxx)
|
||||||
|
+ target_include_directories(tensile_client PUBLIC "${ROCM_OPENMP_EXTRAS_DIR}/include")
|
||||||
|
+ target_link_libraries(tensile_client PRIVATE "${ROCM_OPENMP_EXTRAS_DIR}/lib/libomp.so")
|
||||||
|
+
|
||||||
|
endif()
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user