Page 1 of 1

Compiling/linking Magma Sparse on Windows 7 using MSVS 2012

Posted: Thu Nov 27, 2014 4:06 pm
by raffayhamid
Hello,

I'd like to know how to compile/link Magma Sparse on Windows using MSVS 2012. Could someone please advise a CMake based procedure similar to the one for Magma Dense?

Thanks!
-Raffay.

Re: Compiling/linking Magma Sparse on Windows 7 using MSVS 2

Posted: Tue Dec 09, 2014 9:17 am
by Noran
When I'am right you need at least the nvcc Compiler from NVidia because the sparse-iter folder contains .cu-files.
If you want to use the MSVS compiler instead of the g++ and gcc, you will have to change the Variables CC and CXX in the make.inc file from gcc and g++ to the MSVS-compiler. After that run make in the sparse-iter-folder. But I think there maybe will be some errors, because there are differences between MSVS and he GNU compiler.

Greetz Noran

Re: Compiling/linking Magma Sparse on Windows 7 using MSVS 2

Posted: Tue Dec 09, 2014 7:16 pm
by hartwig anzt
Thank you, for picking up on that - you are totally correct, Noran. And indeed, there are some bugs because of the MS C compiler. I apologize for those. I did never work on a MS system to test the functionalities. However, I am now working on fixing these bugs, and they should all be resolved in the next release - probably in January.

Thanks, Hartwig