Jakub Klinkovský pushed to branch main at Arch Linux / Packaging / Packages / 
openucc


Commits:
0023c6ac by Niels P at 2026-11-21T17:14:50+00:00
aarch64: don't hard-code the x86_64 target for the HIP kernels; x86_64 unchanged

- - - - -


2 changed files:

- PKGBUILD
- + openucc-aarch64-hip-target.patch


Changes:

=====================================
PKGBUILD
=====================================
@@ -38,11 +38,16 @@ source=(
   "$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
 )
 
b2sums=('5459f1e64ea27bea8e89932eb90509fe39719bd4adc82ecf3172971da6d2f9510dc8e2e5160130ac31163f9ae383168952183107ac04d0d954c0b5923ae233e1')
+source_aarch64=("$pkgname-aarch64-hip-target.patch")
+b2sums_aarch64=('726b3c5e60ac6d0202c305afe0ee239f7198b9d314d4b066efcba88efdfe59de105e7bcdba2c60b67da2ac94e0bc12c7bc069ab80f09ee9c09465e4706f81b92')
 
 prepare() {
   cd $_name-$pkgver
   # fix building with gcc 15 (yes ucx bundles its old version of gtest...)
   sed -i '1i\#include <cstdint>' test/gtest/common/gtest-all.cc
+  if [[ $CARCH == aarch64 ]]; then
+    patch -Np1 --no-backup-if-mismatch -i 
"$srcdir/$pkgname-aarch64-hip-target.patch"
+  fi
 }
 
 build() {


=====================================
openucc-aarch64-hip-target.patch
=====================================
@@ -0,0 +1,20 @@
+--- a/cuda_lt.sh
++++ b/cuda_lt.sh
+@@ -28,7 +28,7 @@
+ 
+ tmpcmd="${@:3}"
+ if [[ "$tmpcmd" == *"amdclang"* ]]; then
+-  cmd="${@:3:2} -x hip -target x86_64-unknown-linux-gnu ${@:5} -fPIC -O3 -o 
${pic_filepath}"
++  cmd="${@:3:2} -x hip ${@:5} -fPIC -O3 -o ${pic_filepath}"
+ elif [[ "$tmpcmd" == *"hipcc"* ]]; then
+   cmd="${@:3} -fPIC -o ${pic_filepath}"
+ else
+@@ -38,7 +38,7 @@
+ $cmd
+ 
+ if [[ "$tmpcmd" == *"amdclang"* ]]; then
+-  cmd="${@:3:2} -x hip -target x86_64-unknown-linux-gnu ${@:5} -O3 -o 
${npic_filepath}"
++  cmd="${@:3:2} -x hip ${@:5} -O3 -o ${npic_filepath}"
+   echo $cmd
+   $cmd
+ else



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/openucc/-/commit/0023c6aca79ac68efcc157adc1d24c06b6cb5657

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/openucc/-/commit/0023c6aca79ac68efcc157adc1d24c06b6cb5657
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to