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: dlat2s.cu(21): warning: variable "flag" was set but never usedthis warning appear for many functions

Could you please help me to figure out how to install MAGMA correctly?Thanks

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.

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

/usr/include/c++/4.4.7/x86_64-redhat-linux6E/bits/c++config.h

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.