File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ if("${UR_HIP_PLATFORM}" STREQUAL "AMD")
108
108
INTERFACE_INCLUDE_DIRECTORIES "${HIP_HEADERS} "
109
109
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${HIP_HEADERS} "
110
110
)
111
- target_link_libraries (pi_hip PUBLIC amd_comgr )
112
- target_compile_definitions (pi_hip PRIVATE SYCL_ENABLE_KERNEL_FUSION )
111
+ target_link_libraries (${TARGET_NAME} PUBLIC amd_comgr )
112
+ target_compile_definitions (${TARGET_NAME} PRIVATE SYCL_ENABLE_KERNEL_FUSION )
113
113
endif (UR_ENABLE_COMGR )
114
114
115
115
target_link_libraries (${TARGET_NAME} PRIVATE
Original file line number Diff line number Diff line change 10
10
#pragma once
11
11
12
12
#ifdef SYCL_ENABLE_KERNEL_FUSION
13
+ #if (ROCM_VERSION_MAJOR >= 5)
13
14
#include < amd_comgr/amd_comgr.h>
15
+ #else
16
+ #include < amd_comgr.h>
17
+ #endif
14
18
#endif
15
19
#include < hip/hip_runtime.h>
16
20
#include < ur/ur.hpp>
Original file line number Diff line number Diff line change 11
11
#include " program.hpp"
12
12
13
13
#ifdef SYCL_ENABLE_KERNEL_FUSION
14
+ #if (ROCM_VERSION_MAJOR >= 5)
14
15
#include < amd_comgr/amd_comgr.h>
16
+ #else
17
+ #include < amd_comgr.h>
18
+ #endif
15
19
namespace {
16
20
template <typename ReleaseType, ReleaseType Release, typename T>
17
21
struct COMgrObjCleanUp {
You can’t perform that action at this time.
0 commit comments