Created
October 18, 2019 14:35
-
-
Save naetherm/51bc2f1b8f637bac5bd45359ccdde033 to your computer and use it in GitHub Desktop.
roct-thunk-interface-2.9.0-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jakub Okoński <[email protected]> | |
# Maintainer: Markus Näther <[email protected]> | |
pkgname=roct-thunk-interface | |
pkgver=2.9.0 | |
pkgrel=1 | |
pkgdesc="ROCm HSA" | |
arch=(x86_64) | |
url="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface" | |
license=('unknown') | |
makedepends=(git cmake gcc ninja) | |
depends=(numactl pciutils) | |
source=("https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/roc-$pkgver.tar.gz") | |
sha256sums=( | |
"f709be7cb820d92544b0926426b2ea5ebb66c558d2efe5acde604592cda94046" | |
) | |
prepare() { | |
cd ROCT-Thunk-Interface-roc-$pkgver | |
#patch -Np1 -i "$srcdir/fix_build-dev_command.patch" | |
} | |
build() { | |
mkdir -p "$srcdir/build" | |
cd "$srcdir/build" | |
cmake -DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_INSTALL_PREFIX="$pkgdir/opt/rocm" \ | |
-G Ninja \ | |
"$srcdir/ROCT-Thunk-Interface-roc-$pkgver" | |
ninja all build-dev | |
} | |
package() { | |
ninja -C "$srcdir/build" install install-dev | |
mkdir -p "$pkgdir/etc/ld.so.conf.d" | |
cat <<-EOF > $pkgdir/etc/ld.so.conf.d/roct-thunk-interface.conf | |
/opt/rocm/lib64 | |
EOF | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment