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-gcc
to../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.