diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-11-01 17:34:12 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-11-01 20:36:45 +0300 |
commit | f66236a827c82bffd9f31ca2a7919e865a0397e0 (patch) | |
tree | bdffbaf83468e3b3f53c690c4d70cfbecf38e985 /extern | |
parent | 518d7dbebbdce2d5a347c7e53eae216a56f44e2a (diff) |
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.
Diffstat (limited to 'extern')
-rw-r--r-- | extern/hipew/src/hipew.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extern/hipew/src/hipew.c b/extern/hipew/src/hipew.c index ecf952e266f..7cafe7727f5 100644 --- a/extern/hipew/src/hipew.c +++ b/extern/hipew/src/hipew.c @@ -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; |