public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/clpeak] epel10: Fix EL10 build compatibility
@ 2026-10-21 19:54 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-10-21 19:54 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/clpeak
Branch : epel10
Commit : 03c481d567916311cce04436a415c7999e4e2955
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-10-21T16:36:21-03:00
Stats : +21/-3 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/clpeak/c/03c481d567916311cce04436a415c7999e4e2955?branch=epel10
Log:
Fix EL10 build compatibility
---
diff --git a/0001-cpu-skip-avxvnniint16-on-gcc-older-than-15.patch b/0001-cpu-skip-avxvnniint16-on-gcc-older-than-15.patch
new file mode 100644
index 0000000..487b786
--- /dev/null
+++ b/0001-cpu-skip-avxvnniint16-on-gcc-older-than-15.patch
@@ -0,0 +1,14 @@
+diff --git a/src/cpu/CMakeLists.txt b/src/cpu/CMakeLists.txt
+index 4ecb2905ea00dce21199172cb486857d56eec54c..26d076b39966c38d2eabba3dfc9161fc86f92de1 100644
+--- a/src/cpu/CMakeLists.txt
++++ b/src/cpu/CMakeLists.txt
+@@ -385,7 +385,8 @@ if(_clpeak_x86)
+ # the avxvnni / avx512vnni TUs above (it's been part of VNNI all along).
+ set(_avxvnniint16 ${_avx2} ${_clpeak_gnuflag}-mavxvnniint16)
+ check_cxx_compiler_flag("${_avxvnniint16}" _clpeak_f_avxvnniint16)
+- if(_clpeak_f_avxvnniint16)
++ # The _mm256_dpwsud_epi32 intrinsic requires GCC >= 15 (Clang is fine).
++ if(_clpeak_f_avxvnniint16 AND NOT (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 15))
+ clpeak_add_isa_tu(avxvnniint16 ${_avxvnniint16})
+ endif()
+ # AVX10.2 (512-bit): native full-rate bf16 vector FMA (Diamond Rapids).
diff --git a/clpeak.spec b/clpeak.spec
index f1f8720..74d0c90 100644
--- a/clpeak.spec
+++ b/clpeak.spec
@@ -5,6 +5,12 @@ Summary: Measure the peak achievable performance of GPU compute devices
License: Apache-2.0
URL: https://github.com/krrishnarraj/%{name}
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+# GCC 14 accepts -mavxvnniint16 but lacks the _mm256_dpwsud_epi32 intrinsic
+# (added in GCC 15) -- breaks the build on EL10, temporary patch
+# upstream bug report: https://github.com/krrishnarraj/clpeak/issues/223
+%if 0%{?rhel} == 10
+Patch0: 0001-cpu-skip-avxvnniint16-on-gcc-older-than-15.patch
+%endif
BuildRequires: cmake
ExcludeArch: %{ix86}
@@ -39,12 +45,10 @@ numbers.
%prep
%autosetup -p1
-# fix the 'clpeak --version' output - https://github.com/krrishnarraj/clpeak/issues/198
-sed -i 's/"2.0.16"/"%{version}"/' src/common/cmake/version.cmake
%build
-%cmake
+%cmake -DCLPEAK_VERSION_OVERRIDE=%{version}
%cmake_build
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-21 19:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-21 19:54 [rpms/clpeak] epel10: Fix EL10 build compatibility Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox