gentoo-ebuilds/media-libs/oidn/files/oidn-2.3.1-hip-clang-19.patch
Sv. Lockal 0f3d926297
media-libs/oidn: fix dependency on hipcc and compilation with rocm-6.3.0
Befor this change media-libs/oidn[hip] had both llvm-core/clang (some version)
and dev-util/hip (some version) in dependencies, while not attempting to keep in
sync both packages. However specifying dependency on llvm-core/clang is not
needed. Open Image Denoise exposes C99 API with C++11 wrapper, users of this
library has no interest in specifying specific version of LLVM using slots. For
example, it is possible to use LLVM-18-based Mesa (as Mesa is traditionally
lagging behind) with Cycles+OIDN compiled by hipcc-6.3.0 (LLVM-19-based).

This change is followed by change in media-gfx/blender, which removes
`[${LLVM_USEDEP}]` from media-libs/oidn dependency (otherwise the dependency
graph can't be solved).

Closes: https://bugs.gentoo.org/936899
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2025-03-07 13:21:42 +00:00

18 lines
851 B
Diff

Fix compilation with Clang 19 (rocm-6.3.0 and above).
Backports commit https://github.com/ROCm/composable_kernel/commit/c44137838e2cb30bbe5a3b9903c357b476a34d52
Upstream bug: https://github.com/RenderKit/oidn/issues/250
--- a/external/composable_kernel/include/ck/tensor_operation/gpu/block/blockwise_gemm_xdlops.hpp
+++ b/external/composable_kernel/include/ck/tensor_operation/gpu/block/blockwise_gemm_xdlops.hpp
@@ -781,11 +781,6 @@ struct BlockwiseGemmXdlops_v2
"wrong!");
}
- __host__ __device__ BlockwiseGemmXdlops_v2(const BlockwiseGemmXdlops_v2& other)
- : a_thread_copy_(other.a_origin), b_thread_copy_(other.b_origin)
- {
- }
-
// transposed XDL output supporting C_xdl' = B_xdl' * A_xdl'
__host__ __device__ static constexpr auto GetCThreadDescriptor_M0_N0_M1_N1_M2_N2_N3_N4()
{