summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoracxz2020-06-23 21:20:52 -0400
committeracxz2020-06-23 21:20:52 -0400
commit88e01d6deca5bd968f0f87f9468164710375555f (patch)
tree574483583268990e7675bdc51a3b0177ded75aae
downloadaur-88e01d6deca5bd968f0f87f9468164710375555f.tar.gz
[miopen-opencl] create miopen package (opencl backend)
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD37
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..16f2719fa39
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = miopen-opencl
+ pkgdesc = AMD's Machine Intelligence Library (OpenCL backend)
+ pkgver = 3.5.0
+ pkgrel = 1
+ url = https://github.com/ROCmSoftwarePlatform/MIOpen
+ arch = x86_64
+ license = custom:NCSAOSL
+ makedepends = opencl-headers
+ makedepends = cmake
+ makedepends = half
+ makedepends = miopengemm
+ depends = ocl-icd
+ depends = rocblas
+ depends = boost
+ depends = llvm-amdgpu
+ source = miopen-opencl-3.5.0::https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-3.5.0.tar.gz
+ sha256sums = aa362e69c4dce7f5751f0ee04c745735ea5454c8101050e9b92cc60fa3c0fb82
+
+pkgname = miopen-opencl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bb6bd5decb2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: acxz <akashpatel at yahoo dot com>
+
+pkgname=miopen-opencl
+pkgver=3.5.0
+pkgrel=1
+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' 'cmake' 'half' 'miopengemm')
+source=("$pkgname-$pkgver::https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-$pkgver.tar.gz")
+sha256sums=('aa362e69c4dce7f5751f0ee04c745735ea5454c8101050e9b92cc60fa3c0fb82')
+
+build() {
+ mkdir -p "$srcdir/build"
+ cd "$srcdir/build"
+
+ cmake -DCMAKE_INSTALL_PREFIX=/opt/rocm/miopen \
+ -DMIOPEN_BACKEND=OpenCL \
+ -DHALF_INCLUDE_DIR=/usr/include/half \
+ -DBoost_NO_BOOST_CMAKE=ON \
+ "$srcdir/MIOpen-rocm-$pkgver"
+
+ make
+}
+
+package() {
+ cd "$srcdir/build"
+
+ make DESTDIR="$pkgdir" install
+
+ install -d "$pkgdir/etc/ld.so.conf.d"
+ cat << EOF > "$pkgdir/etc/ld.so.conf.d/miopen.conf"
+/opt/rocm/miopen/lib
+EOF
+}