File: 0010-optional-device-libs-find-package.patch

package info (click to toggle)
rocm-hipamd 6.4.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,040 kB
  • sloc: cpp: 211,057; ansic: 35,860; sh: 755; python: 623; perl: 275; asm: 166; makefile: 27
file content (25 lines) | stat: -rw-r--r-- 816 bytes parent folder | download
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)