summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 9 insertions, 13 deletions
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"