summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTorsten Ke├čler2020-06-06 13:56:50 +0200
committerGitHub2020-06-06 07:56:50 -0400
commit8d181bd70d278787f15d61f8c1332f8007995117 (patch)
tree0e89297953c3ff739c88ac9c08551795a55946d8 /PKGBUILD
parent2e54ddc908f60e4b1132cd8fd581c0a647571c29 (diff)
downloadaur-8d181bd70d278787f15d61f8c1332f8007995117.tar.gz
[rocm-opencl-runtime] Update to 3.5.0 (#194)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 16 insertions, 32 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a96c7f9e14d..d672dd6eac0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,54 +1,38 @@
# Maintainer: Ranieri Althoff <ranisalt+aur at gmail dot com>
-_opencl_icd_loader_repo='https://github.com/KhronosGroup/OpenCL-ICD-Loader'
-_opencl_icd_loader_commit='978b4b3a29a3aebc86ce9315d5c5963e88722d03'
-
pkgname=rocm-opencl-runtime
-pkgver=3.3.0
-pkgrel=7
+pkgver=3.5.0
+pkgrel=1
pkgdesc='Radeon Open Compute - OpenCL runtime'
arch=('x86_64')
url='https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime'
license=('MIT')
-depends=('hsakmt-roct' 'hsa-rocr' 'opencl-icd-loader' 'comgr')
-makedepends=('mesa' 'cmake' 'git' 'rocm-cmake')
+depends=('hsakmt-roct' 'hsa-rocr' 'rocclr' 'opencl-icd-loader')
+makedepends=('cmake' 'rocm-cmake')
provides=("$pkgname" 'opencl-driver')
-source=("$url/archive/roc-$pkgver.tar.gz"
- "$_opencl_icd_loader_repo/archive/$_opencl_icd_loader_commit.tar.gz"
- "ret_val-fix.patch::$_opencl_icd_loader_repo/commit/9acc3fcbeadeef27c57d9fb195c4a94fbcf52f66.patch"
- 'install_vendor_file.patch')
-sha256sums=('ac6999f1a491ab066286c2bd6adf50f08f831286f56e267879f9f7eced22f98e'
- '0c14bf890bd198ef5a814b5b7ed57b69e890b0c0a1bcfba8fdad996fa1a97fc7'
- '59bbb5e566c32a55deedb849eb6224c3b196df6fb3a3b1aa7f5b7adb86cd6614'
- 'b83de5ea8ae889664ce2725f90c5db8c1c9e98839d75c7743b355d16435dccee')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/roc-$pkgver.tar.gz")
+sha256sums=('511b617d5192f2d4893603c1a02402b2ac9556e9806ff09dd2a91d398abf39a0')
_dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)"
-_opencl_dirname="$(basename "$_opencl_icd_loader_repo")-$(basename "${source[1]}" .tar.gz)"
-
-prepare() {
- cd "$_dirname"
- patch -Np1 -i "$srcdir/install_vendor_file.patch"
-
- mkdir -p api/opencl/khronos
- mv "$srcdir/$_opencl_dirname" api/opencl/khronos/icd
-
- cd api/opencl/khronos/icd
- patch -Np1 -i "$srcdir/ret_val-fix.patch"
-}
build() {
+ CFLAGS="$CFLAGS -isystem /opt/rocm/rocclr/include/include -isystem /opt/rocm/rocclr/include/compiler/lib -isystem /opt/rocm/rocclr/include/compiler/lib/include" \
+ CXXFLAGS="$CXXFLAGS -isystem /opt/rocm/rocclr/include/include -isystem /opt/rocm/rocclr/include/compiler/lib -isystem /opt/rocm/rocclr/include/compiler/lib/include" \
cmake -DCMAKE_INSTALL_PREFIX=/opt/rocm \
- -DCMAKE_INSTALL_SYSCONFDIR=/etc \
- -DCMAKE_MODULE_PATH=/opt/rocm/share/rocm/cmake \
- -DCMAKE_PREFIX_PATH=/opt/rocm/lib/cmake \
+ -DROCclr_DIR=/opt/rocm/rocclr \
+ -DLIBROCclr_STATIC_DIR=/opt/rocm/rocclr/lib \
-DUSE_COMGR_LIBRARY=yes \
+ -DBUILD_TESTING=OFF \
"$_dirname"
make
}
package() {
DESTDIR="$pkgdir" make install
- install -Dm644 "$_dirname/License" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 "$_dirname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 /dev/stdin "$pkgdir/etc/ld.so.conf.d/$pkgname.conf" <<-EOF
- /opt/rocm/lib/x86_64
+ /opt/rocm/lib
+EOF
+ install -Dm644 /dev/stdin "$pkgdir/etc/OpenCL/vendors/amdocl64.icd" <<EOF
+/opt/rocm/lib/libamdocl64.so
EOF
}