Date: Thursday, February 23, 2023 @ 17:50:14
Author: svenstaro
Revision: 1403704
archrelease: copy trunk to community-staging-x86_64
Added:
magma/repos/community-staging-x86_64/
magma/repos/community-staging-x86_64/PKGBUILD
(from rev 1403703, magma/trunk/PKGBUILD)
magma/repos/community-staging-x86_64/add_cuda_archs.patch
(from rev 1403703, magma/trunk/add_cuda_archs.patch)
----------------------+
PKGBUILD | 56 +++++++++++++++++++++++++++++++++++++++++++++++++
add_cuda_archs.patch | 45 +++++++++++++++++++++++++++++++++++++++
2 files changed, 101 insertions(+)
Copied: magma/repos/community-staging-x86_64/PKGBUILD (from rev 1403703,
magma/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-02-23 17:50:14 UTC (rev 1403704)
@@ -0,0 +1,56 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Contributor: bartus <arch-user-repoᘓbartus.33mail.com>
+# Contributor: pingplug <[email protected]>
+# Contributor: cornholio <[email protected]>
+
+pkgname=magma
+pkgver=2.7.1
+pkgrel=1
+pkgdesc="Matrix Algebra on GPU and Multicore Architectures"
+arch=('x86_64')
+url="https://icl.utk.edu/magma/"
+license=('custom')
+depends=('blas' 'lapack' 'cuda')
+makedepends=('gcc11-fortran' 'cmake' 'ninja')
+optdepends=('python: for examples and tests'
+ 'gcc11-fortran: Fortran interface')
+source=("${pkgname}-${pkgver}.tar.gz::https://icl.utk.edu/projectsfiles/${pkgname}/downloads/${pkgname}-${pkgver}.tar.gz"
+ 'add_cuda_archs.patch')
+sha256sums=('d9c8711c047a38cae16efde74bee2eb3333217fd2711e1e9b8606cbbb4ae1a50'
+ '1ed3706a65a124ecef71012273687307aac70bfc80bc99a978002dfb0ee000cc')
+options=(!lto)
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+
+ patch -Np1 -i "${srcdir}/add_cuda_archs.patch"
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+
+ CC=/usr/bin/gcc-11 \
+ CXX=/usr/bin/g++-11 \
+ FC=/usr/bin/gfortran-11 \
+ cmake \
+ -Bbuild \
+ -GNinja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=ON \
+ -DGPU_TARGET="sm_52 sm_53 sm_60 sm_61 sm_62 sm_70 sm_72 sm_75 sm_80 sm_86
sm_87 sm_89 sm_90"
+ ninja -C build
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ DESTDIR="${pkgdir}" ninja -Cbuild install
+
+ install -d "${pkgdir}"/usr/share/magma/example
+ cp -r "${srcdir}"/magma-${pkgver}/example/*
"${pkgdir}"/usr/share/magma/example/
+ install -d "${pkgdir}"/usr/share/magma/testing
+ cp -r "${srcdir}"/magma-${pkgver}/testing/*
"${pkgdir}"/usr/share/magma/testing/
+ install -Dm644 "${srcdir}"/magma-${pkgver}/COPYRIGHT
"${pkgdir}"/usr/share/licenses/magma/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
Copied: magma/repos/community-staging-x86_64/add_cuda_archs.patch (from rev
1403703, magma/trunk/add_cuda_archs.patch)
===================================================================
--- community-staging-x86_64/add_cuda_archs.patch
(rev 0)
+++ community-staging-x86_64/add_cuda_archs.patch 2023-02-23 17:50:14 UTC
(rev 1403704)
@@ -0,0 +1,45 @@
+--- magma-2.6.2lol/CMakeLists.txt 2022-10-06 07:08:50.732278629 +0200
++++ magma-2.6.2/CMakeLists.txt 2022-10-06 07:10:36.348650499 +0200
+@@ -294,6 +294,42 @@
+ 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" )
++ endif()
++
++ if (GPU_TARGET MATCHES sm_87)
++ if (NOT MIN_ARCH)
++ set( MIN_ARCH 870 )
++ endif()
++ set( NV_SM ${NV_SM} -gencode arch=compute_87,code=sm_87 )
++ set( NV_COMP -gencode arch=compute_87,code=compute_87 )
++ message( STATUS " compile for CUDA arch 8.7" )
++ endif()
++
++ if (GPU_TARGET MATCHES sm_89)
++ if (NOT MIN_ARCH)
++ set( MIN_ARCH 890 )
++ endif()
++ set( NV_SM ${NV_SM} -gencode arch=compute_89,code=sm_89 )
++ set( NV_COMP -gencode arch=compute_89,code=compute_89 )
++ message( STATUS " compile for CUDA arch 8.9" )
++ endif()
++
++ if (GPU_TARGET MATCHES sm_90)
++ if (NOT MIN_ARCH)
++ set( MIN_ARCH 900 )
++ endif()
++ set( NV_SM ${NV_SM} -gencode arch=compute_90,code=sm_90 )
++ set( NV_COMP -gencode arch=compute_90,code=compute_90 )
++ message( STATUS " compile for CUDA arch 9.0" )
++ 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()