Installing MAGMA 1.4.1

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)

Installing MAGMA 1.4.1

Postby dalal » Thu Feb 20, 2014 4:39 am

Dear all,
I am trying to install MAGMA 1.4.1.
My is:

CC = icc
NVCC = nvcc
FORT = ifort

ARCH = ar
RANLIB = ranlib

F77OPTS = -O3 -DADD_ -warn all
FOPTS = -O3 -DADD_ -warn all
NVOPTS = -O3 -DADD_ -Xcompiler -fno-strict-aliasing
LDOPTS = -openmp
LIB = -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lpthread -lcublas -lcudart -lstdc++ -lm# define library directories preferably in your environment, or here.
# for MKL run, e.g.: source /opt/intel/composerxe/mkl/bin/ intel64
MKLROOT = /opt/intel/composer_xe_2013/mkl
CUDADIR = /usr/local/cuda
-include make.check-mkl
-include make.check-cuda

LIBDIR = -L$(MKLROOT)/lib/intel64 \

INC = -I$(CUDADIR)/include -I$(MKLROOT)/include

I got many warnings and error:
Error: /usr/include/c++/4.7/bits/stl_algobase.h(60): catastrophic error: cannot open source file "bits/c++config.h"
#include <bits/c++config.h>
Warning: warning: variable "flag" was set but never used
this warning appear for many functions

Could you please help me to figure out how to install MAGMA correctly?
Posts: 14
Joined: Thu Feb 20, 2014 4:30 am

Re: Installing MAGMA 1.4.1

Postby mgates3 » Fri Feb 21, 2014 5:06 pm

Can you show more complete output of make? From this output, I can't tell what file is being compiled, and therefore where the error is occurring. When doing so, please do not use parallel make (i.e., use make -j1) because otherwise it is impossible to decipher what errors are associated with what files.

I'm not aware that MAGMA includes this C++ header file anywhere.

Posts: 782
Joined: Fri Jan 06, 2012 2:13 pm

Re: Installing MAGMA 1.4.1

Postby mgates3 » Tue Feb 25, 2014 6:37 pm

This appears it may be that the system headers are not correctly installed, or that icc is not correctly configured to search the system headers. The bits/c++config.h should be somewhere such as


However, as the error occurs when compiling trace.cpp, you can simply ignore the error and keep going (e.g., make -k). That trace.cpp file should not be important, unless you are generating traces of the MAGMA code.

Posts: 782
Joined: Fri Jan 06, 2012 2:13 pm

Return to User discussion

Who is online

Users browsing this forum: No registered users and 5 guests