summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTorsten Ke├čler2020-04-20 21:53:21 +0200
committerGitHub2020-04-20 19:53:21 +0000
commit5b66acde89c82186e9d6e62adac1701548eea099 (patch)
treea10b33dea80dc9116a3e3b36d93b756c3c1342c4 /PKGBUILD
parent5b1ab2889a55f93c97c5655f19b7f59ca673ffe0 (diff)
downloadaur-5b66acde89c82186e9d6e62adac1701548eea099.tar.gz
[rocm-opencl-runtime] Add OpenCL/vendors, fix ld.so.conf (#101)
* Copy amdocl64.icd to /etc/OpenCL/vendors. Otherwise, clinfo doesn't work. * Change ld.so.conf to /opt/rocm/lib/x86_64 so that the runtime can detect libamdocl64.so Co-authored-by: Ranieri Althoff <1993083+ranisalt@users.noreply.github.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 13 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7fcc63601cf..d6a67fdfe17 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ _opencl_icd_loader_commit='978b4b3a29a3aebc86ce9315d5c5963e88722d03'
pkgname=rocm-opencl-runtime
pkgver=3.3.0
-pkgrel=2
+pkgrel=3
pkgdesc='Radeon Open Compute - OpenCL runtime'
arch=('x86_64')
url='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime'
@@ -14,15 +14,20 @@ depends=('hsakmt-roct' 'hsa-rocr' 'opencl-icd-loader')
makedepends=('mesa' 'cmake' 'git' 'llvm-roc' 'rocm-cmake' 'rocm-comgr')
provides=("$pkgname" 'opencl-driver')
source=("$url/archive/roc-$pkgver.tar.gz"
- "$_opencl_icd_loader_repo/archive/$_opencl_icd_loader_commit.tar.gz")
+ "$_opencl_icd_loader_repo/archive/$_opencl_icd_loader_commit.tar.gz"
+ 'install_vendor_file.patch')
sha256sums=('ac6999f1a491ab066286c2bd6adf50f08f831286f56e267879f9f7eced22f98e'
- '0c14bf890bd198ef5a814b5b7ed57b69e890b0c0a1bcfba8fdad996fa1a97fc7')
+ '0c14bf890bd198ef5a814b5b7ed57b69e890b0c0a1bcfba8fdad996fa1a97fc7'
+ 'b83de5ea8ae889664ce2725f90c5db8c1c9e98839d75c7743b355d16435dccee')
_dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)"
_opencl_dirname="$(basename "$_opencl_icd_loader_repo")-$(basename "${source[1]}" .tar.gz)"
prepare() {
- mkdir -p "$_dirname/api/opencl/khronos"
- mv "$_opencl_dirname" "$_dirname/api/opencl/khronos/icd"
+ cd "$_dirname"
+ patch -Np1 -i "$srcdir/install_vendor_file.patch"
+
+ mkdir -p api/opencl/khronos
+ mv "$srcdir/$_opencl_dirname" api/opencl/khronos/icd
}
build() {
@@ -37,9 +42,8 @@ build() {
package() {
DESTDIR="$pkgdir" make install
-
- mkdir -p "$pkgdir/etc/ld.so.conf.d"
- echo /opt/rocm/lib > "$pkgdir/etc/ld.so.conf.d/$pkgname.conf"
-
install -Dm644 "$_dirname/License" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 /dev/stdin "$pkgdir/etc/ld.so.conf.d/$pkgname.conf" <<-EOF
+ /opt/rocm/lib/x86_64
+EOF
}