1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Fri, 22 Mar 2024 16:21:50 -0600
Subject: optional device libs for hip find package
When users do find_package(hip REQUIRED), the REQUIRED argument gets
forwarded to find_dependency. However, the device libraries are not
required for many libraries that are using HIP (e.g., C or C++
applications that only use the HIP host interfaces).
Forwarded: no
---
hipamd/hip-config-amd.cmake.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/hipamd/hip-config-amd.cmake.in
+++ b/hipamd/hip-config-amd.cmake.in
@@ -63,7 +63,7 @@
endif()
if(NOT WIN32)
- find_dependency(AMDDeviceLibs HINTS ${ROCM_PATH} PATHS "/opt/rocm")
+ find_package(AMDDeviceLibs QUIET HINTS ${ROCM_PATH} PATHS "/opt/rocm")
endif()
if(DEFINED AMDGPU_TARGETS AND NOT DEFINED GPU_TARGETS)
|