Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-11-01 17:34:12 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-11-01 20:36:45 +0300
commitf66236a827c82bffd9f31ca2a7919e865a0397e0 (patch)
treebdffbaf83468e3b3f53c690c4d70cfbecf38e985
parent518d7dbebbdce2d5a347c7e53eae216a56f44e2a (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.
-rw-r--r--extern/hipew/src/hipew.c2
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;