Date: Friday, January 27, 2023 @ 17:15:56
  Author: tpkessler
Revision: 1388874

upgpkg: rocalution 5.4.2-1: ROCm patch release, add parallel build for GPU archs

Modified:
  rocalution/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-27 17:14:04 UTC (rev 1388873)
+++ PKGBUILD    2023-01-27 17:15:56 UTC (rev 1388874)
@@ -1,8 +1,8 @@
 # Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
 # Contributor: Markus Näther <[email protected]>
 pkgname=rocalution
-pkgver=5.4.1
-pkgrel=2
+pkgver=5.4.2
+pkgrel=1
 pkgdesc='Next generation library for iterative sparse solvers for ROCm 
platform'
 arch=('x86_64')
 url='https://rocalution.readthedocs.io/en/master'
@@ -12,8 +12,9 @@
 _git='https://github.com/ROCmSoftwarePlatform/rocALUTION'
 source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
         "$pkgname-remove-git.patch")
-sha256sums=('c11b76ccd89ea65f649fe283eb2fc9056c290e7a06ea234cb88c82dacf6f9608'
+sha256sums=('baeb692c796e7b10be9d980e79e755e4f491c12a0fba9561b20c3dfe1388d873'
             '9daafee87896ef043b655542f36e078b9a3f3a4a106b69849cfd8add25637cca')
+options=(!lto)
 _dirname="$(basename "$_git")-$(basename "${source[0]}" ".tar.gz")"
 
 prepare() {
@@ -22,6 +23,9 @@
 }
 
 build() {
+  # Compile source code for supported GPU archs in parallel
+  export HIPCC_COMPILE_FLAGS_APPEND="-parallel-jobs=$(nproc)"
+  export HIPCC_LINK_FLAGS_APPEND="-parallel-jobs=$(nproc)"
   # -fcf-protection is not supported by HIP, see
   # 
https://docs.amd.com/bundle/ROCm-Compiler-Reference-Guide-v5.4/page/Appendix_A.html
   CXXFLAGS="${CXXFLAGS} -fcf-protection=none" \

Reply via email to