public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Egbert Eich <eich@suse.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rocsolver] epel10: Don't fail build on 1-core-VM
Date: Fri, 12 Jun 2026 17:20:52 GMT	[thread overview]
Message-ID: <178128485231.1.1865640382634578127.rpms-rocsolver-e9744bdb275c@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-06-12 17:20 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=178128485231.1.1865640382634578127.rpms-rocsolver-e9744bdb275c@fedoraproject.org \
    --to=eich@suse.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