SWDEV-497529 - Link with hip::amdhip64 target in 15_static_library/device_functions
Modified target_link_libraries to link with the hip::amdhip64
target instead of directly linking to the amdhip64 library.
This ensures that all sub-dependent libraries that are necessary
for static build are included.
Change-Id: Idf69477708172604ba9c349735d3230ae765923a
[ROCm/hip-tests commit: ef9558a160]
Šī revīzija ir iekļauta:
1 vecāks
2f2e5fb958
revīzija
05312d2d2c
1 file changed
+1
-1
+1
-1
@@ -61,7 +61,7 @@ else()
|
|||||||
target_link_libraries(test_device_static PRIVATE HipDevice)
|
target_link_libraries(test_device_static PRIVATE HipDevice)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(test_device_static PRIVATE -fgpu-rdc amdhip64 amd_comgr)
|
target_link_libraries(test_device_static PRIVATE -fgpu-rdc hip::amdhip64 amd_comgr)
|
||||||
|
|
||||||
if(TARGET build_cookbook)
|
if(TARGET build_cookbook)
|
||||||
add_dependencies(build_cookbook HipDevice test_device_static)
|
add_dependencies(build_cookbook HipDevice test_device_static)
|
||||||
|
|||||||
Reference in new issue
Block a user