commit: 9d8a5e63a03ebed0e03280de8e606d1d435338f9 Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> AuthorDate: Fri Oct 17 09:31:27 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Fri Oct 17 14:31:25 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d8a5e63
sci-libs/composable-kernel: drop unused patches Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44218 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> ...posable-kernel-5.7.1-enable-test-examples.patch | 19 ---------------- ...1.1-fix-clang-17-no-offload-uniform-block.patch | 18 ---------------- .../files/composable-kernel-6.1.1-fix-libcxx.patch | 25 ---------------------- 3 files changed, 62 deletions(-) diff --git a/sci-libs/composable-kernel/files/composable-kernel-5.7.1-enable-test-examples.patch b/sci-libs/composable-kernel/files/composable-kernel-5.7.1-enable-test-examples.patch deleted file mode 100644 index dd93b8af743a..000000000000 --- a/sci-libs/composable-kernel/files/composable-kernel-5.7.1-enable-test-examples.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -280,8 +280,14 @@ rocm_package_setup_component(profiler - ) - - add_subdirectory(library) --add_subdirectory(example) --add_subdirectory(test) -+option(BUILD_EXAMPLES "Build examples" OFF) -+if(BUILD_EXAMPLES) -+ add_subdirectory(example) -+endif() -+option(BUILD_TESTS "Build binaries for tests" OFF) -+if(BUILD_TESTS) -+ add_subdirectory(test) -+endif() - add_subdirectory(profiler) - - #Create an interface target for the include only files and call it "composablekernels" diff --git a/sci-libs/composable-kernel/files/composable-kernel-6.1.1-fix-clang-17-no-offload-uniform-block.patch b/sci-libs/composable-kernel/files/composable-kernel-6.1.1-fix-clang-17-no-offload-uniform-block.patch deleted file mode 100644 index 3a102bec49cd..000000000000 --- a/sci-libs/composable-kernel/files/composable-kernel-6.1.1-fix-clang-17-no-offload-uniform-block.patch +++ /dev/null @@ -1,18 +0,0 @@ -`-fno-offload-uniform-block` flag was added in Clang 18; do not use it if hipcc uses Clang 17 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -144,11 +144,9 @@ else() - message("Building CK for the following targets: ${AMDGPU_TARGETS}") - endif() - find_package(hip) --# No assumption that HIP kernels are launched with uniform block size for backward compatibility --# SWDEV-413293 and https://reviews.llvm.org/D155213 --math(EXPR hip_VERSION_FLAT "(${hip_VERSION_MAJOR} * 1000 + ${hip_VERSION_MINOR}) * 100000 + ${hip_VERSION_PATCH}") --message("hip_version_flat=${hip_VERSION_FLAT}") --if(NOT WIN32 AND ${hip_VERSION_FLAT} GREATER 500723302) -+ -+check_cxx_compiler_flag("-x hip -fno-offload-uniform-block" COMPILER_HAS_OPTION_OFFLOAD_UNIFORM_BLOCK) -+if(COMPILER_HAS_OPTION_OFFLOAD_UNIFORM_BLOCK) - message("Adding the fno-offload-uniform-block compiler flag") - add_compile_options(-fno-offload-uniform-block) - endif() diff --git a/sci-libs/composable-kernel/files/composable-kernel-6.1.1-fix-libcxx.patch b/sci-libs/composable-kernel/files/composable-kernel-6.1.1-fix-libcxx.patch deleted file mode 100644 index c73dafc02420..000000000000 --- a/sci-libs/composable-kernel/files/composable-kernel-6.1.1-fix-libcxx.patch +++ /dev/null @@ -1,25 +0,0 @@ -libc++ has no std::numeric_limits<__Float16> implementation and treats f8_t as is_integral. - -Bug for is_integral: https://github.com/llvm/llvm-project/issues/102767 -Bug for numeric_limits: https://github.com/ROCm/composable_kernel/issues/1460 ---- a/library/include/ck/library/utility/check_err.hpp -+++ b/library/include/ck/library/utility/check_err.hpp -@@ -146,7 +146,7 @@ check_err(const Range& out, - bool res{true}; - int err_count = 0; - double err = 0; -- double max_err = std::numeric_limits<ranges::range_value_t<Range>>::min(); -+ double max_err = NumericLimits<ranges::range_value_t<Range>>::Min(); - for(std::size_t i = 0; i < ref.size(); ++i) - { - const double o = type_convert<float>(*std::next(std::begin(out), i)); -@@ -178,7 +178,8 @@ check_err(const Range& out, - template <typename Range, typename RefRange> - std::enable_if_t<(std::is_same_v<ranges::range_value_t<Range>, ranges::range_value_t<RefRange>> && - std::is_integral_v<ranges::range_value_t<Range>> && -- !std::is_same_v<ranges::range_value_t<Range>, bhalf_t>) -+ !std::is_same_v<ranges::range_value_t<Range>, bhalf_t> && -+ !std::is_same_v<ranges::range_value_t<Range>, f8_t>) - #ifdef CK_EXPERIMENTAL_BIT_INT_EXTENSION_INT4 - || std::is_same_v<ranges::range_value_t<Range>, int4_t> - #endif
