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]
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ else()
|
||||
target_link_libraries(test_device_static PRIVATE HipDevice)
|
||||
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)
|
||||
add_dependencies(build_cookbook HipDevice test_device_static)
|
||||
|
||||
Reference in New Issue
Block a user