# Generated by makepkg 7.0.0
# Sat Aug  1 16:38:52 UTC 2026
pkgbase = magma
	pkgver = 2.9.0
	pkgrel = 4
	url = https://icl.utk.edu/magma/
	arch = x86_64
	arch = aarch64
	license = BSD-3-Clause
	makedepends = git
	makedepends = cmake
	makedepends = ninja
	makedepends = python
	makedepends = gcc-fortran
	makedepends = cuda
	makedepends = rocm-core
	makedepends = hip-runtime-amd
	makedepends = hipblas
	makedepends = hipsparse
	depends = blas
	depends = lapack
	optdepends = python: for examples and tests
	optdepends = gcc-fortran: Fortran interface
	options = !lto
	options = !debug
	source = magma::git+https://github.com/icl-utk-edu/magma.git#tag=v2.9.0
	source = ROCm-use-HIPBLAS_V2-types-and-APIs-ROCm-7-ready.patch
	sha256sums = bd18fbfd1b36dbcfd604b22f2fdfaf0a18c5dcfbe09fe1f1b2f2fe3e365bc304
	sha256sums = 1dd10785f143adfd73cfd5c5fae44553ea52c10bd9a8fcd20f97819529a0ead1

pkgname = magma-cuda
	pkgdesc = Matrix Algebra on GPU and Multicore Architectures (with CUDA)
	depends = blas
	depends = lapack
	depends = cuda
	provides = magma
	replaces = magma

pkgname = magma-hip
	pkgdesc = Matrix Algebra on GPU and Multicore Architectures (with ROCm/HIP)
	depends = blas
	depends = lapack
	depends = hip-runtime-amd
	depends = hipblas
	depends = hipsparse
	provides = hipmagma
	replaces = hipmagma
