Skip to content

Commit a360a4a

Browse files
committed
Add libamdhip64.so to list of specially handled libraries
Change-Id: I2cbc5e0ec2c3e5a2fc267b4fbe3290688f1f0fdb
1 parent 6e544ef commit a360a4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2528,7 +2528,8 @@ void CheckNoDeepBind(const char *filename, int flag) {
25282528

25292529
#if SANITIZER_AMDGPU
25302530
void PatchHsaRuntimeDlopenFlag(const char *filename, int &flag) {
2531-
if (filename && (internal_strstr(filename, "libhsa-runtime64.so") ||
2531+
if (filename && (internal_strstr(filename, "libamdhip64.so") ||
2532+
internal_strstr(filename, "libhsa-runtime64.so") ||
25322533
internal_strstr(filename, "libamdocl64.so")) && !(flag & RTLD_GLOBAL)) {
25332534
flag |= RTLD_GLOBAL;
25342535
if (Verbosity() >= 2) {

0 commit comments

Comments
 (0)