Package Details: magma 2.5.0-2

Git Clone URL: https://aur.archlinux.org/magma.git (read-only)
Package Base: magma
Description: Provides a dense linear algebra library similar to LAPACK but for heterogeneous/hybrid architectures, starting with current 'Multicore+GPU' systems (with CUDA)
Upstream URL: http://icl.cs.utk.edu/magma/
Keywords: cuda magma
Licenses: custom
Submitter: fishburn
Maintainer: bartus
Last Packager: bartus
Votes: 12
Popularity: 0.131678
First Submitted: 2012-05-24 05:11
Last Updated: 2019-08-06 16:23

Pinned Comments

bartus commented on 2019-04-10 11:42

Please report issues and patches to magma@github.com

Latest Comments

1 2 Next › Last »

bartus commented on 2019-04-11 11:07

@herbert: Is the issue persistent, can't reproduce it..

It looks like __half(const double) is defined in /opt/cuda/targets/x86_64- linux/include/cuda_fp16.hpp

166     __CUDA_HOSTDEVICE__ __half(const double f) { __x = __float2half(static_cast<float>(f)).__x;  } 

bartus commented on 2019-04-10 11:42

Please report issues and patches to magma@github.com

herbert commented on 2019-02-17 09:46

Fails when building:

aur-magma/src/magma-2.5.0/src/xhsgetrf_gpu.cpp:109:45: error: no matching function for call to ‘__half::__half(double)’

const magmaHalf h_one = (magmaHalf) 1.0;

Full log here:

http://ix.io/1BgZ

Nvidia GT620M, nvidia-390xx, Cuda 9.1, gcc 8.2.1+20181127-1

Linux 4.20.8-arch1-1-ARCH #1 SMP PREEMPT Wed Feb 13 00:06:58 UTC 2019 x86_64 GNU/Linux

pingplug commented on 2018-07-01 13:21

use this package if you want to speed up CUDA source compilation with ccache https://aur.archlinux.org/packages/ccache-ext/

praina_ccdia commented on 2017-04-10 19:15

Dependency gcc-libs-multilib no longer exists, and alternative dependency gcc-libs-multilib-git depends on another package which no longer exists

Alad commented on 2016-11-22 16:03

Also depends on openblas

-L/opt/cuda/lib64 -L/usr/lib -lopenblas -lcublas -lcusparse -lcudart
/usr/bin/ld: cannot find -lopenblas
collect2: error: ld returned 1 exit status
make: *** [Makefile:589: lib/libmagma.so] Error 1
make: *** Waiting for unfinished jobs....
ranlib lib/libmagma.a

edit: hm, fails with the same error even with openblas installed…

Alad commented on 2016-10-26 12:41

gfortran -O3 -fPIC -DADD_ -Wall -Wno-unused-dummy-argument -x f95-cpp-input -I/opt/cuda/include -I./include -I./control -Dmagma_devptr_t="integer(kind=8)" -c -o control/magma_param.o control/magma_param.F90
/bin/sh: gfortran: command not found
make: *** [Makefile:550: control/magma_param.o] Error 127
make: *** Waiting for unfinished jobs...

d.brewer commented on 2015-05-04 12:06

I have submitted a package, magma-atlas, which is the most up-to-date version but built using the atlas-lapack package from the AUR instead of acml and cblas. Hope this helps :)

paul commented on 2015-01-12 21:01

I made some changes to the PKGBUILD to install the 1.6.0 instead.

--- PKGBUILD.old 2014-01-15 08:41:29.000000000 -0800
+++ PKGBUILD.new 2015-01-12 12:55:26.275061816 -0800
@@ -3,13 +3,13 @@

##### Configuration Options
# Specify GPU compute capability Tesla (1.x) or Fermi (2.x) or Kepler (3.x)
-_GPU_TARGET=Tesla
-#_GPU_TARGET=Fermi
+#_GPU_TARGET=Tesla
+_GPU_TARGET=Fermi
#_GPU_TARGET=Kepler
##### End

pkgname=magma
-pkgver=1.4.1
+pkgver=1.6.0
pkgrel=1
pkgdesc="Provides a dense linear algebra library similar to LAPACK but for heterogeneous/hybrid architectures, starting with current 'Multicore+GPU' systems."
arch=("i686" "x86_64")
@@ -18,11 +18,10 @@
depends=("cuda>=5.0.0" "gcc-libs-multilib" "gsl" "python" "acml-gfortran" "cblas")
makedepends=("acml-gfortran")
options=('staticlibs')
-sha1sums=('3e6bc7c2d6500508134b6cdf48985f7c8b94c89b')
+sha1sums=('1eee8d2e5da19974bd89ccd8609f5901eb55c0ae')
source=("http://icl.cs.utk.edu/projectsfiles/magma/downloads/magma-${pkgver}.tar.gz")

-build() {
-
+prepare() {
cd ${srcdir}/magma-${pkgver}

# Fix Makefile
@@ -35,21 +34,40 @@
sed -i 's^_mv^^g' make.inc
sed -i 's^-L$(ACMLDIR)/gfortran64/lib^-L$(ACMLDIR)^g' make.inc
sed -i 's^-L$(CBLASDIR)/lib^-L$(CBLASDIR)^g' make.inc
+ sed -i '/CFLAGS = -O3 -DADD_ -fopenmp -DMAGMA_SETAFFINITY -DMAGMA_WITH_ACML/a CXXFLAGS = -O3 -DADD_ -fopenmp -DMAGMA_SETAFFINITY -DMAGMA_WITH_ACML' make.inc

- make clean
- make all
- make prefix="${srcdir}/install/" install
+ msg "Modified make.inc"
+}

- make clean
- sed -i 's^-O3^-fPIC -O3^g' make.inc
- sed -i 's^-fopenmp^-fPIC -fopenmp^g' make.inc
- sed -i '/NVOPTS =/c NVOPTS = -O3 -DADD_ -Xcompiler "-fno-strict-aliasing -fPIC"' make.inc
- make shared
+build() {
+ cd ${srcdir}/magma-${pkgver}
+
+ make clean
+ msg "Building static libraries"
+ make all
make prefix="${srcdir}/install/" install
+ msg "Static library compiliation complete"
+
+ msg "Building shared libraries"
+ make clean
+ sed -i 's^-O3^-fPIC -O3^g' make.inc
+ sed -i 's^-fopenmp^-fPIC -fopenmp^g' make.inc
+ sed -i '/NVCCFLAGS =/c NVCCFLAGS = -O3 -DADD_ -Xcompiler "-fno-strict-aliasing -fPIC"' make.inc
+ make shared
+ make prefix="${srcdir}/install/" install
+ msg "Shared library compiliation complete"
+}
+
+check() {
+ msg "Making testing"
+ cd ${srcdir}/magma-${pkgver}
+ make testing
+ msg "Testing complete"
}

package(){
- mkdir -p ${pkgdir}/opt/magma/testing
+
+ mkdir -p ${pkgdir}/opt/magma/testing
cp -ru ${srcdir}/magma-${pkgver}/testing/* ${pkgdir}/opt/magma/testing/
cp -ru ${srcdir}/install/* ${pkgdir}/opt/magma/

fishburn commented on 2014-01-15 16:41

@GloW
The problem was that the Makefile made assumptions about the directory structure of acml and cblas, descending into directories that didn't exist (/usr/lib/acml/gfortran/lib and /usr/lib/lib). I have edited the Makefile to simply use the library directories as provided. No symlinking is needed.

Also package version is now updated to 1.4.1