public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocsolver] epel10: Don't fail build on 1-core-VM
@ 2026-06-12 17:20 Egbert Eich
  0 siblings, 0 replies; only message in thread
From: Egbert Eich @ 2026-06-12 17:20 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rocsolver
            Branch : epel10
            Commit : e9744bdb275c9c5dbc917752fb9dc2066a5612bb
            Author : Egbert Eich <eich@suse.com>
            Date   : 2026-04-02T16:04:13-07:00
            Stats  : +8/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocsolver/c/e9744bdb275c9c5dbc917752fb9dc2066a5612bb?branch=epel10

            Log:
            Don't fail build on 1-core-VM

Patch by Bernhard Wiedemann <bwiedemann@suse.de>

Signed-off-by: Egbert Eich <eich@suse.com>

---
diff --git a/rocsolver.spec b/rocsolver.spec
index 407f61e..7e3b52f 100644
--- a/rocsolver.spec
+++ b/rocsolver.spec
@@ -122,7 +122,7 @@ Version:        %{rocm_version}
 %if %{with preview}
 Release:        0%{?dist}
 %else
-Release:        3%{?dist}
+Release:        4%{?dist}
 %endif
 Summary:        Next generation LAPACK implementation for ROCm platform
 
@@ -242,12 +242,14 @@ if [ ${HIP_JOBS}x = x ]; then
 fi
 # Try again..
 if [ ${HIP_JOBS} = 1 ]; then
-    HIP_JOBS=`lscpu | grep '^CPU(s)' | awk '{ print $2 }'`
+    HIP_JOBS=`lscpu | grep '^CPU(s):' | awk '{ print $2 }'`
     if [ ${HIP_JOBS}x = x ]; then
         HIP_JOBS=4
     fi
 fi
-HIP_JOBS=`eval "expr ${HIP_JOBS} / 2"`
+if [ ${HIP_JOBS} > 1 ] ; then
+    HIP_JOBS=`eval "expr ${HIP_JOBS} / 2"`
+fi
 
 # Take into account memmory usage per core, do not thrash real memory
 BUILD_MEM=32
@@ -351,6 +353,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/rocsolver/LICENSE.md
 %endif
 
 %changelog
+* Sat Mar 28 2026 Bernhard Wiedemann <bwiedemann@suse.de> - 7.2.0-4
+- Don't fail build on 1-core-VM
+
 * Fri Mar 6 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-3
 - Change --with gitcommit to preview
 

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

only message in thread, other threads:[~2026-06-12 17:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-12 17:20 [rpms/rocsolver] epel10: Don't fail build on 1-core-VM Egbert Eich

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