summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Klinkovský2021-06-06 20:26:22 +0200
committerGitHub2021-06-06 20:26:22 +0200
commit18e2e6ebbaa8a6ab6369f1bcda12e6d6c3ce84ad (patch)
treedb6a56d972239269d0d05ffdaefc1edce501c186
parent407b142684ad1c367bfa6d3570fb4e3884a23570 (diff)
downloadaur-18e2e6ebbaa8a6ab6369f1bcda12e6d6c3ce84ad.tar.gz
[miopengemm] fix build with GCC 11 (#609)
fixes #607
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD13
2 files changed, 13 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b9d2b593a13..54c9992ace7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = miopengemm
pkgdesc = An OpenCL GEMM kernel generator
pkgver = 4.2.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/ROCmSoftwarePlatform/MIOpenGEMM
arch = x86_64
license = MIT
@@ -11,6 +11,8 @@ pkgbase = miopengemm
makedepends = rocm-cmake
depends = ocl-icd
source = miopengemm-4.2.0.tar.gz::https://github.com/ROCmSoftwarePlatform/MIOpenGEMM/archive/rocm-4.2.0.tar.gz
+ source = fix-gcc11-build.patch::https://patch-diff.githubusercontent.com/raw/ROCmSoftwarePlatform/MIOpenGEMM/pull/46.patch
sha256sums = a11fa063248ed339fe897ab4c5d338b7279035fa37fcbe0909e2c4c352aaefb1
+ sha256sums = 5c81ee48b64de3c343cde2df8551bba966961b99d1fe4b12f0348ced5fe52a18
pkgname = miopengemm
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