Cycles: update Linux library search paths for upcoming ROCm 6

Pull Request: https://projects.blender.org/blender/blender/pulls/114178
This commit is contained in:
bsavery 2023-10-31 17:54:03 +01:00 committed by Brecht Van Lommel
parent e05c36f56d
commit b7b74385cd
1 changed files with 4 additions and 0 deletions

View File

@ -238,9 +238,13 @@ static int hipewHipInit(void) {
/* Default installation path. */
const char *hip_paths[] = {"", NULL};
#else
/* ROCm 6 changes paths from /opt/rocm/hip/lib to /opt/rocm/lib, so
* search for libraries there. It still includes .so.5. */
const char *hip_paths[] = {"libamdhip64.so.5",
"/opt/rocm/lib/libamdhip64.so.5",
"/opt/rocm/hip/lib/libamdhip64.so.5",
"libamdhip64.so",
"/opt/rocm/lib/libamdhip64.so",
"/opt/rocm/hip/lib/libamdhip64.so", NULL};
#endif
static int initialized = 0;