Date: Saturday, May 6, 2023 @ 10:50:44
  Author: tpkessler
Revision: 1458986

archrelease: copy trunk to community-staging-x86_64

Added:
  hsa-rocr/repos/community-staging-x86_64/
  hsa-rocr/repos/community-staging-x86_64/PKGBUILD
    (from rev 1458985, hsa-rocr/trunk/PKGBUILD)
  hsa-rocr/repos/community-staging-x86_64/hsa-rocr-glibcxx.patch
    (from rev 1458985, hsa-rocr/trunk/hsa-rocr-glibcxx.patch)

------------------------+
 PKGBUILD               |   50 +++++++++++++++++++++++++++++++++++++++++++++++
 hsa-rocr-glibcxx.patch |   12 +++++++++++
 2 files changed, 62 insertions(+)

Copied: hsa-rocr/repos/community-staging-x86_64/PKGBUILD (from rev 1458985, 
hsa-rocr/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-05-06 10:50:44 UTC (rev 1458986)
@@ -0,0 +1,50 @@
+# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
+# Contributor: acxz <akashpatel2008 at yahoo dot com>
+# Contributor: Olaf Leidinger <[email protected]>
+# Contributor: Bruno Filipe <[email protected]>
+# Contributor: Jakub Okoński <[email protected]>
+# Contributor: Ranieri Althoff <ranisalt+aur at gmail.com>
+
+pkgname=hsa-rocr
+pkgver=5.5.0
+pkgrel=1
+pkgdesc='HSA Runtime API and runtime for ROCm'
+arch=('x86_64')
+url='https://rocmdocs.amd.com/en/latest/Installation_Guide/ROCR-Runtime.html'
+license=('custom:NCSAOSL')
+depends=('libelf' 'hsakmt-roct' 'rocm-device-libs')
+makedepends=('cmake' 'rocm-llvm' 'xxd')
+_git='https://github.com/RadeonOpenCompute/ROCR-Runtime'
+source=("${pkgname}-${pkgver}.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
+        "hsa-rocr-glibcxx.patch")
+sha256sums=('8dbc776b56f93ddaa2ca38bf3b88299b8091de7c1b3f2e481064896cf6808e6c'
+            '07a41e8a6b29d0baaea7b83c60d62b769d8ed738ed9c63acda43d7a3b466c393')
+_dirname="$(basename "$_git")-$(basename "${source[0]}" .tar.gz)"
+options=(!lto)
+
+prepare() {
+    cd "$_dirname"
+    patch -Np1 -i "$srcdir/hsa-rocr-glibcxx.patch"
+}
+
+build() {
+  # Silence warnings on optional libraries,
+  # 
https://github.com/RadeonOpenCompute/ROCR-Runtime/issues/89#issuecomment-613788944
+  CXXFLAGS="$CXXFLAGS -DNDEBUG" \
+  cmake \
+    -Wno-dev \
+    -B build \
+    -S "$_dirname/src" \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_INSTALL_PREFIX=/opt/rocm \
+    -DCMAKE_PREFIX_PATH=/opt/rocm
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+
+  install -Dm644 "$_dirname/LICENSE.txt" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  echo "/opt/rocm/hsa/lib" > "$pkgname.conf"
+  install -Dm644 "$pkgname.conf" "$pkgdir/etc/ld.so.conf.d/$pkgname.conf"
+}

Copied: hsa-rocr/repos/community-staging-x86_64/hsa-rocr-glibcxx.patch (from 
rev 1458985, hsa-rocr/trunk/hsa-rocr-glibcxx.patch)
===================================================================
--- community-staging-x86_64/hsa-rocr-glibcxx.patch                             
(rev 0)
+++ community-staging-x86_64/hsa-rocr-glibcxx.patch     2023-05-06 10:50:44 UTC 
(rev 1458986)
@@ -0,0 +1,12 @@
+diff -aur a/src/core/runtime/runtime.cpp b/src/core/runtime/runtime.cpp
+--- a/src/core/runtime/runtime.cpp     2022-12-14 22:47:12.000000000 +0800
++++ b/src/core/runtime/runtime.cpp     2023-01-29 09:53:55.084690262 +0800
+@@ -1592,7 +1592,7 @@
+       }
+       if (!ld(&hsa_api_table_.hsa_api,
+         hsa_api_table_.hsa_api.version.major_id,
+-        failed.size(), &failed[0])) {
++        failed.size(), failed.data())) {
+           failed.push_back(lib.name_.c_str());
+           os::CloseLib(tool);
+           continue;

Reply via email to