Skip to content

Instantly share code, notes, and snippets.

@naetherm naetherm/PKGBUILD
Created Oct 18, 2019

Embed
What would you like to do?
rocr-runtime-2.9.0-1
# Maintainer: Jakub Okoński <jakub@okonski.org>
# Maintainer: Markus Näther <naetherm@cs.uni-freiburg.de>
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
You can’t perform that action at this time.