public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/clpeak] epel10: Fix EL10 build compatibility
Date: Wed, 21 Oct 2026 19:54:10 GMT	[thread overview]
Message-ID: <179261245079.1.4573166309288463665.rpms-clpeak-03c481d56791@fedoraproject.org> (raw)

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
 
 

                 reply	other threads:[~2026-10-21 19:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179261245079.1.4573166309288463665.rpms-clpeak-03c481d56791@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox