Error installing MAGMA

Hi, i’m trying to install magma 2.5.0 but when i do “make” i get the following error:

src/xhsgetrf_gpu.cpp:110:45: error: no matching function for call to ‘__half::__half(double)’
const magmaHalf h_neg_one = (magmaHalf)-1.0;

This is how my makefile looks:

[b]GPU_TARGET = Kepler

CC = gcc
NVCC = nvcc
FORT = gfortran

ARCH = ar
RANLIB = ranlib

F77OPTS = -O3 -DADD_
FOPTS = -O3 -DADD_ -x f95-cpp-input
NVOPTS = -O3 -DADD_ -Xcompiler -fno-strict-aliasing
LDOPTS = -fopenmp

Depending on how ATLAS and LAPACK were compiled, you may need one or more of:

-lifcore -ldl -lf2c -lgfortran

LIB = -llapack -lf77blas -latlas -lcblas -lcublas -lcudart -lstdc++ -lm -lgfortran

define library directories here or in your environment

LAPACKDIR = /usr/lib
ATLASDIR = /usr/lib/atlas-base
CUDADIR = /usr/local/cuda
-include make.check-atlas
-include make.check-cuda


INC = -I$(CUDADIR)/include[/b]

Do you guys have any idea of what’s happening?

I was able to get past this using the patch found here:

I have no idea what’s happening or why this works and I am building with a different makefile (the example for pascal), so YMMV!