Hello,
I've discovered MAGMA today and I feel that it could be an interesting tool for me. But I'm not so sure about the language implementation of part of MAGMA. I can see in the code lots of files with the extension *.cpp, but the code is apparently standard C. Moreover, in the make.inc files the only compilers used are for C (gcc), Fortran (gfortran) and CUDA (nvcc), so my question is, is implemented MAGMA in C or C++ (apart from CUDA)? So can I call MAGMA from a C program?
Thanks
Is MAGMA implemented in C or in C++
-
Stan Tomov
- Posts: 283
- Joined: Fri Aug 21, 2009 10:39 pm
Re: Is MAGMA implemented in C or in C++
MAGMA is written in C and can be called from C.
Stan
Stan
Re: Is MAGMA implemented in C or in C++
And why then the extension of the files are *.cpp instead of *.c?
-
Stan Tomov
- Posts: 283
- Joined: Fri Aug 21, 2009 10:39 pm
Re: Is MAGMA implemented in C or in C++
There is no particular reason. Originally we thought that we may want to use some of the C++ features but we haven't so far. We had the same question/discussion raised internally - should we move the files to *.c?