Is MAGMA implemented in C or in C++

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
jgpallero
Posts: 31
Joined: Tue Nov 15, 2011 12:38 pm

Is MAGMA implemented in C or in C++

Post by 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

Stan Tomov
Posts: 283
Joined: Fri Aug 21, 2009 10:39 pm

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

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

MAGMA is written in C and can be called from C.
Stan

jgpallero
Posts: 31
Joined: Tue Nov 15, 2011 12:38 pm

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

Post by jgpallero » Tue Nov 22, 2011 12:59 pm

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++

Post by 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?

Post Reply