Date: Wednesday, July 21, 2021 @ 08:44:32 Author: kgizdov Revision: 981590
upgpkg: magma 2.6.1-1 Added: magma/trunk/add_cuda86_arch.patch Modified: magma/trunk/PKGBUILD -----------------------+ PKGBUILD | 16 ++++++++++++---- add_cuda86_arch.patch | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-07-21 08:38:49 UTC (rev 981589) +++ PKGBUILD 2021-07-21 08:44:32 UTC (rev 981590) @@ -4,8 +4,8 @@ # Contributor: cornholio <vigo.the.unholy.carpath...@gmail.com> pkgname=magma -pkgver=2.5.4 -pkgrel=4 +pkgver=2.6.1 +pkgrel=1 pkgdesc="Matrix Algebra on GPU and Multicore Architectures" arch=('x86_64') url="https://icl.cs.utk.edu/magma/" @@ -14,9 +14,17 @@ makedepends=('gcc-fortran' 'cmake' 'ninja') optdepends=('python: for examples and tests' 'gcc-fortran: Fortran interface') -source=("${pkgname}-${pkgver}.tar.gz::http://icl.cs.utk.edu/projectsfiles/${pkgname}/downloads/${pkgname}-${pkgver}.tar.gz") -sha256sums=('7734fb417ae0c367b418dea15096aef2e278a423e527c615aab47f0683683b67') +source=("${pkgname}-${pkgver}.tar.gz::http://icl.cs.utk.edu/projectsfiles/${pkgname}/downloads/${pkgname}-${pkgver}.tar.gz" + 'add_cuda86_arch.patch') +sha256sums=('6cd83808c6e8bc7a44028e05112b3ab4e579bcc73202ed14733f66661127e213' + '896a6b66b4e3c10fab9bb3ae27b6783c2fad3ebd5e204d62da9fdec443bd6c15') +prepare() { + cd "${pkgname}-${pkgver}" + + patch -Np1 -i "${srcdir}/add_cuda86_arch.patch" +} + build() { cd "${pkgname}-${pkgver}" Added: add_cuda86_arch.patch =================================================================== --- add_cuda86_arch.patch (rev 0) +++ add_cuda86_arch.patch 2021-07-21 08:44:32 UTC (rev 981590) @@ -0,0 +1,19 @@ +diff --color -aur magma-2.6.1-old/CMakeLists.txt magma-2.6.1-new/CMakeLists.txt +--- magma-2.6.1-old/CMakeLists.txt 2021-07-13 01:35:20.000000000 +0300 ++++ magma-2.6.1-new/CMakeLists.txt 2021-07-21 11:02:28.014236200 +0300 +@@ -294,6 +294,15 @@ + message( STATUS " compile for CUDA arch 8.0 (Ampere)" ) + endif() + ++ if (GPU_TARGET MATCHES sm_86) ++ if (NOT MIN_ARCH) ++ set( MIN_ARCH 860 ) ++ endif() ++ set( NV_SM ${NV_SM} -gencode arch=compute_86,code=sm_86 ) ++ set( NV_COMP -gencode arch=compute_86,code=compute_86 ) ++ message( STATUS " compile for CUDA arch 8.6 (Ampere)" ) ++ endif() ++ + if (NOT MIN_ARCH) + message( FATAL_ERROR "GPU_TARGET must contain one or more of Fermi, Kepler, Maxwell, Pascal, Volta, Turing, Ampere, or valid sm_[0-9][0-9]" ) + endif()