Compiling/linking Magma Sparse on Windows 7 using MSVS 2012

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
raffayhamid
Posts: 3
Joined: Sun Jan 05, 2014 2:32 am

Compiling/linking Magma Sparse on Windows 7 using MSVS 2012

Post by raffayhamid » Thu Nov 27, 2014 4:06 pm

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.

Noran
Posts: 27
Joined: Fri Sep 26, 2014 3:47 am

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

Post by Noran » Tue Dec 09, 2014 9:17 am

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

hartwig anzt
Posts: 90
Joined: Tue Sep 02, 2014 5:44 pm

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

Post by hartwig anzt » Tue Dec 09, 2014 7:16 pm

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

Post Reply