summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJakub Klinkovský2021-06-06 20:26:22 +0200
committerGitHub2021-06-06 20:26:22 +0200
commit18e2e6ebbaa8a6ab6369f1bcda12e6d6c3ce84ad (patch)
treedb6a56d972239269d0d05ffdaefc1edce501c186 /PKGBUILD
parent407b142684ad1c367bfa6d3570fb4e3884a23570 (diff)
downloadaur-18e2e6ebbaa8a6ab6369f1bcda12e6d6c3ce84ad.tar.gz
[miopengemm] fix build with GCC 11 (#609)
fixes #607
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index cb37e3b3e04..43234e1aaa5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,17 +3,24 @@
# Contributor: Jakub Okoński <jakub@okonski.org>
pkgname=miopengemm
pkgver=4.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="An OpenCL GEMM kernel generator"
arch=('x86_64')
url="https://github.com/ROCmSoftwarePlatform/MIOpenGEMM"
license=('MIT')
depends=('ocl-icd')
makedepends=('opencl-headers' 'cmake' 'ocl-icd' 'rocm-cmake')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/rocm-$pkgver.tar.gz")
-sha256sums=('a11fa063248ed339fe897ab4c5d338b7279035fa37fcbe0909e2c4c352aaefb1')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/rocm-$pkgver.tar.gz"
+ "fix-gcc11-build.patch::https://patch-diff.githubusercontent.com/raw/ROCmSoftwarePlatform/MIOpenGEMM/pull/46.patch")
+sha256sums=('a11fa063248ed339fe897ab4c5d338b7279035fa37fcbe0909e2c4c352aaefb1'
+ '5c81ee48b64de3c343cde2df8551bba966961b99d1fe4b12f0348ced5fe52a18')
_dirname="$(basename "$url")-$(basename "${source[0]}" ".tar.gz")"
+prepare() {
+ # fix build with GCC 11, see https://github.com/ROCmSoftwarePlatform/rocBLAS/issues/1191#issuecomment-851696908
+ patch -Np1 < "fix-gcc11-build.patch"
+}
+
build() {
cmake -S "$_dirname" -Wno-dev \
-DCMAKE_INSTALL_PREFIX=/opt/rocm