Date: Saturday, May 6, 2023 @ 10:43:26
  Author: tpkessler
Revision: 1458982

archrelease: copy trunk to community-staging-x86_64

Added:
  rocm-device-libs/repos/community-staging-x86_64/
  rocm-device-libs/repos/community-staging-x86_64/PKGBUILD
    (from rev 1458981, rocm-device-libs/trunk/PKGBUILD)
  
rocm-device-libs/repos/community-staging-x86_64/rocm-device-libs-rm-gfx700.patch
    (from rev 1458981, rocm-device-libs/trunk/rocm-device-libs-rm-gfx700.patch)

----------------------------------+
 PKGBUILD                         |   42 +++++++++++++++++++++++++++++++++++++
 rocm-device-libs-rm-gfx700.patch |   19 ++++++++++++++++
 2 files changed, 61 insertions(+)

Copied: rocm-device-libs/repos/community-staging-x86_64/PKGBUILD (from rev 
1458981, rocm-device-libs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-05-06 10:43:26 UTC (rev 1458982)
@@ -0,0 +1,42 @@
+# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
+# Contributor: Ranieri Althoff <ranisalt+aur at gmail dot com>
+
+pkgname=rocm-device-libs
+pkgver=5.5.0
+pkgrel=1
+pkgdesc='ROCm Device Libraries'
+arch=('x86_64')
+url='https://github.com/RadeonOpenCompute/ROCm-Device-Libs'
+license=('custom:NCSAOSL')
+makedepends=('rocm-cmake' 'rocm-llvm')
+source=("${pkgname}-${pkgver}.tar.gz::$url/archive/rocm-$pkgver.tar.gz"
+        "${pkgname}-rm-gfx700.patch")
+sha256sums=('5ab95aeb9c8bed0514f96f7847e21e165ed901ed826cdc9382c14d199cbadbd3'
+            '0b38ab6d8b1a52bac198007af098d6ec5008a7359a4ee174283e6c69c8b1a868')
+_dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)"
+
+prepare() {
+    cd "$_dirname"
+    patch -Np1 -i "$srcdir/$pkgname-rm-gfx700.patch"
+}
+
+build() {
+    cmake \
+        -Wno-dev \
+        -S "$_dirname" \
+        -B build \
+        -DCMAKE_C_COMPILER=/opt/rocm/llvm/bin/clang \
+        -DCMAKE_BUILD_TYPE=None \
+        -DCMAKE_INSTALL_PREFIX=/opt/rocm \
+        -DLLVM_DIR=/opt/rocm/llvm/lib/cmake/llvm
+    cmake --build build
+}
+
+check() {
+    cmake --build build --target test
+}
+
+package() {
+    DESTDIR="$pkgdir" cmake --install build
+    install -Dm644 "$_dirname/LICENSE.TXT" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: 
rocm-device-libs/repos/community-staging-x86_64/rocm-device-libs-rm-gfx700.patch
 (from rev 1458981, rocm-device-libs/trunk/rocm-device-libs-rm-gfx700.patch)
===================================================================
--- community-staging-x86_64/rocm-device-libs-rm-gfx700.patch                   
        (rev 0)
+++ community-staging-x86_64/rocm-device-libs-rm-gfx700.patch   2023-05-06 
10:43:26 UTC (rev 1458982)
@@ -0,0 +1,19 @@
+diff --git a/test/compile/CMakeLists.txt b/test/compile/CMakeLists.txt
+index 9af0b1a..a789222 100644
+--- a/test/compile/CMakeLists.txt
++++ b/test/compile/CMakeLists.txt
+@@ -54,12 +54,12 @@ foreach(gpu gfx900 gfx1030)
+   add_constant_fold_test(lgamma_r ${gpu})
+ endforeach()
+ 
+-foreach(gpu gfx700 gfx803)
++foreach(gpu gfx803)
+   add_isa_test(asin ${gpu})
+   add_isa_test(atan2 ${gpu})
+   add_isa_test(atan2pi ${gpu})
+ endforeach()
+ 
+-foreach(gpu gfx600 gfx700)
++foreach(gpu gfx600)
+   add_isa_test(frexp ${gpu})
+ endforeach()

Reply via email to