Skip to content

Commit 65de35c

Browse files
authored
add libamdhip64.so search path by the standard way (man dlopen) as a fallback (#76)
1 parent b209cc1 commit 65de35c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

contrib/hipew/src/hipew.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,11 @@ void hipewInit( int* resultDriver, int* resultRtc, hipuint32_t flags )
293293
const char* hiprtc_paths[] = { NULL };
294294
#else
295295
const char *hip_paths[] = { "/opt/rocm/hip/lib/libamdhip64.so",
296-
"/opt/rocm/lib/libamdhip64.so", NULL };
296+
"/opt/rocm/lib/libamdhip64.so",
297+
"libamdhip64.so", NULL };
297298
const char* hiprtc_paths[] = { "/opt/rocm/hip/lib/libhiprtc.so",
298-
"/opt/rocm/lib/libhiprtc.so", NULL };
299+
"/opt/rocm/lib/libhiprtc.so",
300+
"libamdhip64.so", NULL };
299301
#endif
300302
static int initialized = 0;
301303
static int s_resultDriver = 0;

0 commit comments

Comments
 (0)