public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/clpeak] f45: remove upstreamed patch, fix 'clpeak --version' output
@ 2026-08-18 19:26 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-18 19:26 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/clpeak
            Branch : f45
            Commit : 4418c4b533ec6b5136bc05f9980caca657cf28ae
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-18T16:25:09-03:00
            Stats  : +2/-74 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/clpeak/c/4418c4b533ec6b5136bc05f9980caca657cf28ae?branch=f45

            Log:
            remove upstreamed patch, fix 'clpeak --version' output

Resolves: rhbz#2518133

---
diff --git a/clpeak-fix-amx-tf32.patch b/clpeak-fix-amx-tf32.patch
deleted file mode 100644
index 217c3d3..0000000
--- a/clpeak-fix-amx-tf32.patch
+++ /dev/null
@@ -1,72 +0,0 @@
---- a/src/cpu/CMakeLists.txt
-+++ b/src/cpu/CMakeLists.txt
-@@ -128,6 +128,48 @@
-     target_compile_definitions(peak_cpu PRIVATE CLPEAK_TU_${tag}=1)
- endfunction()
- 
-+function(clpeak_check_amx_fp16 outvar)
-+    set(CMAKE_REQUIRED_FLAGS "${ARGN}")
-+    check_cxx_source_compiles("
-+        #include <immintrin.h>
-+        int main() {
-+            #if defined(__x86_64__) || defined(_M_X64)
-+            _tile_dpfp16ps(0, 4, 5);
-+            #endif
-+            return 0;
-+        }
-+    " ${outvar})
-+    set(${outvar} ${${outvar}} PARENT_SCOPE)
-+endfunction()
-+
-+function(clpeak_check_amx_tf32 outvar)
-+    set(CMAKE_REQUIRED_FLAGS "${ARGN}")
-+    check_cxx_source_compiles("
-+        #include <immintrin.h>
-+        int main() {
-+            #if defined(__x86_64__) || defined(_M_X64)
-+            _tile_mmultf32ps(0, 4, 5);
-+            #endif
-+            return 0;
-+        }
-+    " ${outvar})
-+    set(${outvar} ${${outvar}} PARENT_SCOPE)
-+endfunction()
-+
-+function(clpeak_check_amx_fp8 outvar)
-+    set(CMAKE_REQUIRED_FLAGS "${ARGN}")
-+    check_cxx_source_compiles("
-+        #include <immintrin.h>
-+        int main() {
-+            #if defined(__x86_64__) || defined(_M_X64)
-+            _tile_dphf8ps(0, 4, 5);
-+            #endif
-+            return 0;
-+        }
-+    " ${outvar})
-+    set(${outvar} ${${outvar}} PARENT_SCOPE)
-+endfunction()
-+
- set(CLPEAK_CPU_TU_DEFS "")   # extra per-TU defs (e.g. CLPEAK_CORE_ONLY for MSVC)
- 
- # A -march flag check alone doesn't prove the bleeding-edge ARM TUs can build:
-@@ -365,17 +407,17 @@
-             # -mamx-tf32 / -mamx-fp8 flags need clang>=~18/20 (older toolchains
-             # fail the check and simply skip the TU -> Unsupported row).
-             set(_amxfp16 ${_clpeak_gnuflag}-mamx-tile ${_clpeak_gnuflag}-mamx-fp16)
--            check_cxx_compiler_flag("${_amxfp16}" _clpeak_f_amxfp16)
-+            clpeak_check_amx_fp16(_clpeak_f_amxfp16 "${_amxfp16}")
-             if(_clpeak_f_amxfp16)
-                 clpeak_add_isa_tu(amxfp16 ${_amxfp16})
-             endif()
-             set(_amxtf32 ${_clpeak_gnuflag}-mamx-tile ${_clpeak_gnuflag}-mamx-tf32)
--            check_cxx_compiler_flag("${_amxtf32}" _clpeak_f_amxtf32)
-+            clpeak_check_amx_tf32(_clpeak_f_amxtf32 "${_amxtf32}")
-             if(_clpeak_f_amxtf32)
-                 clpeak_add_isa_tu(amxtf32 ${_amxtf32})
-             endif()
-             set(_amxfp8 ${_clpeak_gnuflag}-mamx-tile ${_clpeak_gnuflag}-mamx-fp8)
--            check_cxx_compiler_flag("${_amxfp8}" _clpeak_f_amxfp8)
-+            clpeak_check_amx_fp8(_clpeak_f_amxfp8 "${_amxfp8}")
-             if(_clpeak_f_amxfp8)
-                 clpeak_add_isa_tu(amxfp8 ${_amxfp8})
-             endif()

diff --git a/clpeak.spec b/clpeak.spec
index a6518a4..7c1d1f1 100644
--- a/clpeak.spec
+++ b/clpeak.spec
@@ -5,8 +5,6 @@ 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
-Patch:      clpeak-fix-amx-tf32.patch
-
 
 BuildRequires: cmake
 BuildRequires: gcc
@@ -34,6 +32,8 @@ numbers.
 
 %prep
 %autosetup -p1
+# fix the 'clpeak --version' output - https://github.com/krrishnarraj/clpeak/issues/198
+sed -i 's/"2.0.16"/"2.1.1"/' src/common/cmake/version.cmake
 
 
 %build

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-18 19:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-18 19:26 [rpms/clpeak] f45: remove upstreamed patch, fix 'clpeak --version' output Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox