Is MAGMA implemented in C or in C++

Open discussion for MAGMA

Is MAGMA implemented in C or in C++

Postby jgpallero » Tue Nov 15, 2011 12:42 pm

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
jgpallero
 
Posts: 29
Joined: Tue Nov 15, 2011 12:38 pm

Re: Is MAGMA implemented in C or in C++

Postby Stan Tomov » Tue Nov 22, 2011 12:58 pm

MAGMA is written in C and can be called from C.
Stan
Stan Tomov
 
Posts: 253
Joined: Fri Aug 21, 2009 10:39 pm

Re: Is MAGMA implemented in C or in C++

Postby jgpallero » Tue Nov 22, 2011 12:59 pm

And why then the extension of the files are *.cpp instead of *.c?
jgpallero
 
Posts: 29
Joined: Tue Nov 15, 2011 12:38 pm

Re: Is MAGMA implemented in C or in C++

Postby Stan Tomov » Tue Nov 22, 2011 2:19 pm

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?
Stan Tomov
 
Posts: 253
Joined: Fri Aug 21, 2009 10:39 pm


Return to User discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests