magma compilation, microsoft visual studio and cmake runtime_library conflict

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
esellijk
Posts: 1
Joined: Thu Mar 28, 2019 3:56 pm

magma compilation, microsoft visual studio and cmake runtime_library conflict

Post by esellijk » Thu Mar 28, 2019 4:09 pm

Hello,
I downloaded magma and I am trying to compile it on a windows 10 system, using visual studio 17, and cuda 10.1.
I used CMake to generate the projects, according to the readme.windows.txt, with NOCHANGE, I used lapack from Intel mkl without fortran, and I have a compilation problem.
It seems that the cu files are all compiled with the -cudart static option which is the default. I don't have an option to change it to dynamic.
The error I am receiving is the following

>magma_sparse.lib(magma_sparse_generated_djacobisetup.cu.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in testing_dsolver.obj

I went back to the Cmake and I unchecked the CUDA_USE_STATIC_CUDA_RUNTIME, I clicked configure and generate and I rebuilt the projects. The same message appears. I did a clean compile with the same procedure and I still obtain this message.

Any help would be appreciated.

mgates3
Posts: 918
Joined: Fri Jan 06, 2012 2:13 pm

Re: magma compilation, microsoft visual studio and cmake runtime_library conflict

Post by mgates3 » Tue Apr 23, 2019 3:56 pm

Thanks for the report. We can look into it. We're revising the CMake file now to address some other issues, so that may resolve this issue as well.

-mark

[Sorry for the delay in posting. A misconfiguration left messages in the moderation queue.]

Post Reply