summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorsten Keßler2021-05-14 18:16:33 +0200
committerTorsten Keßler2021-05-14 18:16:33 +0200
commita8ba86b18e061d4a396fbcc7793760a01df93316 (patch)
tree9c15e4a07242eb1319a5ce832e2ce4a221b1d62b
parent86ac18a1e42fd937af3b671e5ed46f4c69017663 (diff)
downloadaur-a8ba86b18e061d4a396fbcc7793760a01df93316.tar.gz
upgpkg: miopen-opencl 4.2.0-1
upstream release new release
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD20
-rw-r--r--boost-1.72-download.patch11
3 files changed, 33 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ad3f1f2bbbe..89bbdf7448c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = miopen-opencl
pkgdesc = AMD's Machine Intelligence Library (OpenCL backend)
- pkgver = 4.1.0
+ pkgver = 4.2.0
pkgrel = 1
url = https://github.com/ROCmSoftwarePlatform/MIOpen
arch = x86_64
@@ -14,7 +14,9 @@ pkgbase = miopen-opencl
depends = llvm-amdgpu
provides = miopen
conflicts = miopen
- source = miopen-opencl-4.1.0.tar.gz::https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-4.1.0.tar.gz
- sha256sums = 068b1bc33f90fe21d3aab5697d2b3b7b930e613c54d6c5ee820768579b2b41ee
+ source = miopen-opencl-4.2.0.tar.gz::https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-4.2.0.tar.gz
+ source = boost-1.72-download.patch
+ sha256sums = 8ab02e784c8b3471159794766ed6303c333b33c69dc5186c0930e56504373b7c
+ sha256sums = 25fd11b55180801f609f454d0d14c8dd8a3ca65217bcebad7eb8edfbaec67c5d
pkgname = miopen-opencl
diff --git a/PKGBUILD b/PKGBUILD
index 15234e7a582..9e2357b23d7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: acxz <akashpatel at yahoo dot com>
pkgname=miopen-opencl
-pkgver=4.1.0
+pkgver=4.2.0
pkgrel=1
pkgdesc="AMD's Machine Intelligence Library (OpenCL backend)"
arch=('x86_64')
@@ -12,12 +12,26 @@ 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=('068b1bc33f90fe21d3aab5697d2b3b7b930e613c54d6c5ee820768579b2b41ee')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/rocm-$pkgver.tar.gz"
+ 'boost-1.72-download.patch')
+sha256sums=('8ab02e784c8b3471159794766ed6303c333b33c69dc5186c0930e56504373b7c'
+ '25fd11b55180801f609f454d0d14c8dd8a3ca65217bcebad7eb8edfbaec67c5d')
_dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)"
+prepare() {
+ cd "$_dirname"
+ patch -Np1 -i "$srcdir/boost-1.72-download.patch"
+}
+
build() {
cd "$_dirname"
+
+ # -fcf-protection is not supported by HIP, see
+ # https://github.com/ROCm-Developer-Tools/HIP/blob/rocm-4.2.x/docs/markdown/clang_options.md
+ # -fPIC fixes linking errors with boost.
+ export CXX=/opt/rocm/llvm/bin/clang++
+ export CXXFLAGS="${CXXFLAGS} -fcf-protection=none -fPIC"
+
cmake -P install_deps.cmake \
--minimum --prefix "$srcdir/deps"
diff --git a/boost-1.72-download.patch b/boost-1.72-download.patch
new file mode 100644
index 00000000000..f87232c2843
--- /dev/null
+++ b/boost-1.72-download.patch
@@ -0,0 +1,11 @@
+*** MIOpen-rocm-4.1.0/min-requirements.txt.bak 2021-05-03 11:09:05.668764719 +0200
+--- MIOpen-rocm-4.1.0/min-requirements.txt 2021-05-03 11:09:20.831239142 +0200
+***************
+*** 1,3 ****
+ sqlite3,https://sqlite.org/2017/sqlite-autoconf-3170000.tar.gz -H sha256:a4e485ad3a16e054765baf6371826b5000beed07e626510896069c0bf013874c -X autotools -DCMAKE_POSITION_INDEPENDENT_CODE=On
+! boost@1.72 -DCMAKE_POSITION_INDEPENDENT_CODE=On --build
+ half,https://github.com/pfultz2/half/archive/1.12.0.tar.gz -X header -H sha256:0a08660b68abb176ebc2a0cdf8de46e3182a7f46c66443bb80dbfaaec98cf969 --build
+--- 1,3 ----
+ sqlite3,https://sqlite.org/2017/sqlite-autoconf-3170000.tar.gz -H sha256:a4e485ad3a16e054765baf6371826b5000beed07e626510896069c0bf013874c -X autotools -DCMAKE_POSITION_INDEPENDENT_CODE=On
+! boost,https://sourceforge.net/projects/boost/files/boost/1.72.0/boost_1_72_0.tar.bz2 -H sha256:59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722 -X boost -DBOOST_WITHOUT_CONTEXT=1 -DBOOST_WITHOUT_COROUTINE=1 -DBOOST_WITHOUT_PYTHON=1
+ half,https://github.com/pfultz2/half/archive/1.12.0.tar.gz -X header -H sha256:0a08660b68abb176ebc2a0cdf8de46e3182a7f46c66443bb80dbfaaec98cf969 --build