summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Moryakov2020-12-22 00:05:31 +0300
committerGitHub2020-12-21 16:05:31 -0500
commit6ffca4cf1a8a7af8564a12aaf628672509098e3a (patch)
treec74b0698f126bfd4ac9b64cadfeb4b4cbd310a33
parent8715be8ddc94099e1067ea4cd4b84d3afdce5718 (diff)
downloadaur-6ffca4cf1a8a7af8564a12aaf628672509098e3a.tar.gz
[miopen-opencl] Bump to 4.0.0 and build similar to miopen-hip (#559)
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD22
2 files changed, 12 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8ec5ffb4e6e..21818c9ceb2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = miopen-opencl
pkgdesc = AMD's Machine Intelligence Library (OpenCL backend)
- pkgver = 3.10.0
+ pkgver = 4.0.0
pkgrel = 1
url = https://github.com/ROCmSoftwarePlatform/MIOpen
arch = x86_64
@@ -16,8 +16,8 @@ pkgbase = miopen-opencl
depends = llvm-amdgpu
provides = miopen
conflicts = miopen
- source = miopen-opencl-3.10.0.tar.gz::https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-3.10.0.tar.gz
- sha256sums = 926e43c5583cf70d6b247f9fe45971b8b1cc9668f9c8490c142c7e8b6e268f1a
+ source = miopen-opencl-4.0.0.tar.gz::https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-4.0.0.tar.gz
+ sha256sums = 84c6c17be9c1a9cd0d3a2af283433f64b07a4b9941349f498e40fed82fb205a6
pkgname = miopen-opencl
diff --git a/PKGBUILD b/PKGBUILD
index 865b783d42c..911adc24330 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: acxz <akashpatel at yahoo dot com>
pkgname=miopen-opencl
-pkgver=3.10.0
+pkgver=4.0.0
pkgrel=1
pkgdesc="AMD's Machine Intelligence Library (OpenCL backend)"
arch=('x86_64')
@@ -12,26 +12,22 @@ makedepends=('opencl-headers' 'rocm-cmake' 'cmake' 'half' 'miopengemm')
provides=('miopen')
conflicts=('miopen')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-$pkgver.tar.gz")
-sha256sums=('926e43c5583cf70d6b247f9fe45971b8b1cc9668f9c8490c142c7e8b6e268f1a')
+sha256sums=('84c6c17be9c1a9cd0d3a2af283433f64b07a4b9941349f498e40fed82fb205a6')
build() {
- mkdir -p "$srcdir/build"
- cd "$srcdir/build"
-
- cmake -DCMAKE_INSTALL_PREFIX=/opt/rocm \
+ cmake -B build \
+ -S "MIOpen-rocm-$pkgver" \
-DMIOPEN_BACKEND=OpenCL \
+ -DCMAKE_INSTALL_PREFIX=/opt/rocm \
+ -DCMAKE_PREFIX_PATH=/opt/rocm \
-DMIOPEN_HIP_COMPILER=/opt/rocm/llvm/bin/clang++ \
- -DHALF_INCLUDE_DIR=/usr/include/half \
- -DBoost_NO_BOOST_CMAKE=ON \
- "$srcdir/MIOpen-rocm-$pkgver"
+ -DHALF_INCLUDE_DIR=/usr/include/half
- make
+ make -C build
}
package() {
- cd "$srcdir/build"
-
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" make -C build install
install -d "$pkgdir/etc/ld.so.conf.d"
cat << EOF > "$pkgdir/etc/ld.so.conf.d/miopen.conf"