summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorsten Keßler2021-01-07 18:58:16 +0100
committerTorsten Keßler2021-01-07 18:58:16 +0100
commit4b6a8197cf5a1055968bd1105f87b6ba4d800874 (patch)
treeac6639ea37017ecc87f7be49647cc69e2564afa2
parent6ffca4cf1a8a7af8564a12aaf628672509098e3a (diff)
downloadaur-4b6a8197cf5a1055968bd1105f87b6ba4d800874.tar.gz
upgpkg: miopen-opencl 4.0.0-2
Build with boost 1.72
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD20
2 files changed, 13 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 21818c9ceb2..884ab2c13d3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,16 @@
pkgbase = miopen-opencl
pkgdesc = AMD's Machine Intelligence Library (OpenCL backend)
pkgver = 4.0.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/ROCmSoftwarePlatform/MIOpen
arch = x86_64
license = custom:NCSAOSL
makedepends = opencl-headers
makedepends = rocm-cmake
makedepends = cmake
- makedepends = half
makedepends = miopengemm
depends = ocl-icd
depends = rocblas
- depends = boost
depends = llvm-amdgpu
provides = miopen
conflicts = miopen
@@ -20,4 +18,3 @@ pkgbase = miopen-opencl
sha256sums = 84c6c17be9c1a9cd0d3a2af283433f64b07a4b9941349f498e40fed82fb205a6
pkgname = miopen-opencl
-
diff --git a/PKGBUILD b/PKGBUILD
index 911adc24330..9c177643343 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,32 +2,36 @@
pkgname=miopen-opencl
pkgver=4.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="AMD's Machine Intelligence Library (OpenCL backend)"
arch=('x86_64')
url="https://github.com/ROCmSoftwarePlatform/MIOpen"
license=('custom:NCSAOSL')
-depends=('ocl-icd' 'rocblas' 'boost' 'llvm-amdgpu')
-makedepends=('opencl-headers' 'rocm-cmake' 'cmake' 'half' 'miopengemm')
+depends=('ocl-icd' 'rocblas' 'llvm-amdgpu')
+makedepends=('opencl-headers' 'rocm-cmake' 'cmake' 'miopengemm')
provides=('miopen')
conflicts=('miopen')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-$pkgver.tar.gz")
sha256sums=('84c6c17be9c1a9cd0d3a2af283433f64b07a4b9941349f498e40fed82fb205a6')
+_dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)"
build() {
- cmake -B build \
- -S "MIOpen-rocm-$pkgver" \
+ cd "$_dirname"
+ cmake -P install_deps.cmake \
+ --minimum --prefix "$srcdir/deps"
+
+ CXX=/opt/rocm/llvm/bin/clang++ \
+ cmake -B build -Wno-dev \
-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
+ -DCMAKE_PREFIX_PATH="$srcdir/deps"
make -C build
}
package() {
- DESTDIR="$pkgdir" make -C build install
+ DESTDIR="$pkgdir" make -C "$_dirname/build" install
install -d "$pkgdir/etc/ld.so.conf.d"
cat << EOF > "$pkgdir/etc/ld.so.conf.d/miopen.conf"