File: 0002-remove-libhsa-amd-aqlprofile64.so-loading.patch

package info (click to toggle)
rocr-runtime 6.4.3%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,928 kB
  • sloc: cpp: 126,824; ansic: 41,837; lisp: 1,225; asm: 905; sh: 452; python: 117; makefile: 59
file content (36 lines) | stat: -rw-r--r-- 1,295 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
26
27
28
29
30
31
32
33
34
35
36
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Thu, 24 Nov 2022 18:07:37 -0700
Subject: remove libhsa-amd-aqlprofile64.so loading

During the initialization of libhsa-runtime64, the library will attempt
to load libhsa-amd-aqlprofile64.so. The aqlprofile library is an
optional proprietary extension for profiling and is therefore not
available in the Debian repos. The failure to find this library results
in the warning:

    LoadLib(libhsa-amd-aqlprofile64.so) failed: libhsa-amd-aqlprofile64.so: cannot open shared object file: No such file or directory

There is not actually anything wrong or unexpected with this file being
missing, so this warning is not appropriate.

Bug-Debian: https://bugs.debian.org/1024791
Forwarded: not-needed
Reviewed-By: Étienne Mollier <emollier@debian.org>
---
 runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 5 -----
 1 file changed, 5 deletions(-)

--- a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp
+++ b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp
@@ -1442,11 +1442,6 @@
         setFlag(HSA_EXTENSION_AMD_PC_SAMPLING);
       }
 
-      if (os::LibHandle lib = os::LoadLib(kAqlProfileLib)) {
-        os::CloseLib(lib);
-        setFlag(HSA_EXTENSION_AMD_AQLPROFILE);
-      }
-
       setFlag(HSA_EXTENSION_AMD_PROFILER);
 
       break;