blender/extern/hipew
salipour 742b629067 Fix #150553: Cycles HIP RT crash without rocm-hip-devel on Fedora
Both HIP and HIP RT rely on the HIP runtime, which is provided by the rocm-hip
package as both a versioned and an unversioned library (libamdhip64.so.x and
libamdhip64.so). On Fedora, however, rocm-hip ships only the versioned library,
while the unversioned one is provided by rocm-hip-devel.

The version of HIP RT used in Blender currently looks only for the unversioned
library and fails to load the driver if it’s missing. HIP itself, by contrast,
looks for both the versioned and unversioned libraries. Cycles enables HIP RT
as long as the hiprt library is present, even if HIP RT fails to load the
runtime—leading to undefined behavior.

This addresses the issue by disabling HIP RT when the unversioned HIP runtime
library is not found.

Ref #150553

Pull Request: https://projects.blender.org/blender/blender/pulls/151081
2025-12-05 20:09:37 +01:00
..
include Cycles: Remove ROCm 5 code path and add ROCm 7 runtime to search list 2025-08-28 11:35:01 +02:00
src Fix #150553: Cycles HIP RT crash without rocm-hip-devel on Fedora 2025-12-05 20:09:37 +01:00
CMakeLists.txt Cycles: Remove ROCm 5 code path and add ROCm 7 runtime to search list 2025-08-28 11:35:01 +02:00
README Docs: add README for HIPEW library 2021-12-02 18:43:42 +01:00
README.blender Add license and copyright information for external dependencies 2024-10-18 17:08:33 +02:00

The HIP Extension Wrangler Library (HIPEW) is a cross-platform open-source
C/C++ library to dynamically load the HIP library.

HIP (Heterogeneous-Compute Interface for Portability) is an API for C++
programming on AMD GPUs.

It is maintained as part of the Blender project, but included in extern/
for consistency with CUEW and CLEW libraries.

LICENSE

HIPEW is released under the Apache 2.0 license.