Skip to content

Instantly share code, notes, and snippets.

@naetherm
Created December 10, 2019 06:26
Show Gist options
  • Save naetherm/40c43014f5860fed31e060512c3ab3f3 to your computer and use it in GitHub Desktop.
Save naetherm/40c43014f5860fed31e060512c3ab3f3 to your computer and use it in GitHub Desktop.
rocr-runtime
pkgname=rocr-runtime
pkgver=2.10.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=("77a0165f1841fba2b889e703363cd04afe7f7e77834f921c3d4099cd7cde8aeb")
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
}
@naetherm
Copy link
Author

@lolzballs Yes, I'm onto it. On my local device I've already increased roct-thunk-interface to 2.10.0. I will have access to that machine again in a few days, so I can repair and update that dependency too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment