I want to install MAGMA in a server(centos) in order to use the GEMM function.
I have installed CUDA and MKL in this server before i install MAGMA, and i check both is run well by runing a cuBLAS example program and a MKL example program.
Before i describe what i haved happened i must point it seem that there is no fortran in this server. So i install MAGMA by follows:
- I move
make.inc-examples/make.inc.mkl-gccto../make.inc - I modify make.inc:
I commented out:
- FORT = gfortran
- FFLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ -Wall -Wno-unused-dummy-argument
- F90FLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ -Wall -Wno-unused-dummy-argument -x f95-cpp-input
and remove -lgfortran in
- LIB = -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -lpthread -lstdc++ -lm -lgfortran
and i also set MKLROOT=/home/lixin/intel/mkl and CUDADIR=/usr/local/cuda in this file.

It turn out this is a bug in testing program.Thank for @Ignacio Vazquez-Abrams point to this. I have post this problem in MAGMA Forum, then i got a fix tar file, and this problem had solved. If you also meet this problem, you can see this post