Date: Sunday, January 8, 2023 @ 18:49:45
Author: tpkessler
Revision: 1382040
archrelease: copy trunk to community-testing-x86_64
Added:
hipmagma/repos/community-testing-x86_64/
hipmagma/repos/community-testing-x86_64/PKGBUILD
(from rev 1382039, hipmagma/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: hipmagma/repos/community-testing-x86_64/PKGBUILD (from rev 1382039,
hipmagma/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2023-01-08 18:49:45 UTC (rev 1382040)
@@ -0,0 +1,50 @@
+# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
+# Contributor: acxz <akashpatel2008 at yahoo dot com>
+# Contributor: Sven-Hendrik Haase <[email protected]>
+# Contributor: bartus <arch-user-repoᘓbartus.33mail.com>
+# Contributor: pingplug <[email protected]>
+# Contributor: cornholio <[email protected]>
+
+pkgname=hipmagma
+pkgver=2.7.0
+pkgrel=1
+pkgdesc="Matrix Algebra on GPU and Multicore Architectures (HIP backend)"
+arch=('x86_64')
+url="https://icl.cs.utk.edu/magma/"
+license=('custom')
+depends=('blas' 'lapack' 'openmp' 'hip-runtime-amd' 'hipblas' 'hipsparse')
+makedepends=('gcc-fortran' 'cmake' 'ninja')
+optdepends=('python: for examples and tests'
+ 'gcc-fortran: Fortran interface')
+_pkgname="magma"
+source=("${pkgname}-${pkgver}.tar.gz::http://icl.cs.utk.edu/projectsfiles/$_pkgname/downloads/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('fda1cbc4607e77cacd8feb1c0f633c5826ba200a018f647f1c5436975b39fd18')
+options=(!lto)
+
+build() {
+ cd ${_pkgname}-${pkgver}
+
+ CXXFLAGS="${CXXFLAGS} -fcf-protection=none" \
+ cmake \
+ -Bbuild \
+ -GNinja \
+ -DCMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=ON \
+ -DMAGMA_ENABLE_HIP=ON \
+ -DGPU_TARGET="gfx803 gfx900 gfx906:xnack- gfx908:xnack- gfx90a:xnack+
gfx90a:xnack- gfx1010 gfx1011 gfx1012 gfx1030"
+ #List of GPU targets from rocBLAS
+ 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
+}