Skip to content

Instantly share code, notes, and snippets.

@naetherm
Created October 18, 2019 14:43
Show Gist options
  • Save naetherm/246680a40cd01fc620eb38f22bac1425 to your computer and use it in GitHub Desktop.
Save naetherm/246680a40cd01fc620eb38f22bac1425 to your computer and use it in GitHub Desktop.
rocr-runtime-2.9.0-1
# Maintainer: Jakub Okoński <[email protected]>
# Maintainer: Markus Näther <[email protected]>
pkgname=rocr-runtime
pkgver=2.9.0
pkgrel=1
pkgdesc="ROCm HSA"
arch=(x86_64)
url="https://github.com/RadeonOpenCompute/ROCR-Runtime"
license=('unknown')
makedepends=(git cmake gcc ninja)
depends=('roct-thunk-interface')
source=("https://github.com/RadeonOpenCompute/ROCR-Runtime/archive/roc-$pkgver.tar.gz")
sha256sums=("53c791a46ac8b1c7575e4ae27002cb9e84794a63375e221f7c5447ec928e36e5")
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$pkgdir/opt/rocm \
-DCMAKE_PREFIX_PATH=/opt/rocm/libhsakmt \
-DHSAKMT_INC_PATH=/opt/rocm/include \
-DHSAKMT_LIB_PATH=/opt/rocm/lib \
-G Ninja \
"$srcdir/ROCR-Runtime-roc-$pkgver/src"
ninja
}
package() {
ninja -C "$srcdir/build" install
mkdir -p "$pkgdir/etc/ld.so.conf.d"
cat <<-EOF > $pkgdir/etc/ld.so.conf.d/rocm-runtime.conf
/opt/rocm/lib
/opt/rocm/hsa/lib/
EOF
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment