Changes
2 changed files (+13/-17)
-
-
@@ -1,15 +1,15 @@pkgbase = rocrand pkgdesc = Pseudo-random and quasi-random number generator on ROCm pkgver = 3.5.0 pkgrel = 2 pkgver = 3.7.0 pkgrel = 1 url = https://rocmdocs.amd.com/en/latest/ROCm_Libraries/ROCm_Libraries.html#rocrand arch = x86_64 license = MIT makedepends = cmake makedepends = git depends = hip-rocclr source = rocrand-3.5.0.tar.gz::https://github.com/ROCmSoftwarePlatform/rocRAND/archive/rocm-3.5.0.tar.gz sha256sums = 592865a45e7ef55ad9d7eddc8082df69eacfd2c1f3e9c57810eb336b15cd5732 source = rocrand-3.7.0.tar.gz::https://github.com/ROCmSoftwarePlatform/rocRAND/archive/rocm-3.7.0.tar.gz sha256sums = 5e43fe07afe2c7327a692b3b580875bae6e6ee790e044c053fffafbfcbc14860 pkgname = rocrand
-
-
-
@@ -1,7 +1,7 @@# Maintainer: Jakub Okoński <jakub@okonski.org> pkgname=rocrand pkgver=3.5.0 pkgrel=2 pkgver=3.7.0 pkgrel=1 pkgdesc='Pseudo-random and quasi-random number generator on ROCm' arch=('x86_64') url='https://rocmdocs.amd.com/en/latest/ROCm_Libraries/ROCm_Libraries.html#rocrand'
-
@@ -10,30 +10,26 @@ depends=('hip-rocclr')makedepends=('cmake' 'git') _git='https://github.com/ROCmSoftwarePlatform/rocRAND' source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz") sha256sums=('592865a45e7ef55ad9d7eddc8082df69eacfd2c1f3e9c57810eb336b15cd5732') sha256sums=('5e43fe07afe2c7327a692b3b580875bae6e6ee790e044c053fffafbfcbc14860') _dirname="$(basename "$_git")-$(basename "${source[0]}" ".tar.gz")" build() { mkdir -p build cd build CXX=/opt/rocm/hip/bin/hipcc \ cmake -DCMAKE_INSTALL_PREFIX=/opt/rocm \ cmake -Wno-dev -S "$_dirname" \ -DCMAKE_INSTALL_PREFIX=/opt/rocm \ -Damd_comgr_DIR=/opt/rocm/lib/cmake/amd_comgr \ -DBUILD_TEST=OFF \ "$srcdir/rocRAND-rocm-$pkgver" -DBUILD_TEST=OFF make } package() { cd "$srcdir/build" make DESTDIR="$pkgdir" install DESTDIR="$pkgdir" make install install -Dm644 /dev/stdin "$pkgdir/etc/ld.so.conf.d/rocrand.conf" << EOF /opt/rocm/hiprand/lib /opt/rocm/rocrand/lib EOF install -Dm644 "$srcdir/rocRAND-rocm-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 "$_dirname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" # Some packages search for {roc,hip}rand includes in /opt/rocm/include/{roc,hip}rand install -d "$pkgdir/opt/rocm/include"
-