Fix T102018: find HIP library also in system library paths on Linux
Previously it would use a hardcoded location where the AMD driver installs it, but Linux distributions may use other locations. Now look for both cases.
This commit is contained in:
parent
518d7dbebb
commit
f66236a827
2
extern/hipew/src/hipew.c
vendored
2
extern/hipew/src/hipew.c
vendored
@ -253,7 +253,7 @@ static int hipewHipInit(void) {
|
||||
/* Default installation path. */
|
||||
const char *hip_paths[] = {"", NULL};
|
||||
#else
|
||||
const char *hip_paths[] = {"/opt/rocm/hip/lib/libamdhip64.so", NULL};
|
||||
const char *hip_paths[] = {"libamdhip64.so", "/opt/rocm/hip/lib/libamdhip64.so", NULL};
|
||||
#endif
|
||||
static int initialized = 0;
|
||||
static int result = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user