Search found 16 matches

by dariofigueira
Thu Nov 29, 2018 11:13 am
Forum: User discussion
Topic: Bulding a shared library on Windows
Replies: 6
Views: 3286

Re: Bulding a shared library on Windows

Hi shriniwas852, welcome.

Thank you for your effort.

A simple working example CMakeLists.txt based on the one you're using, would be more helpful.

Kind regards,
by dariofigueira
Fri Nov 09, 2018 9:41 am
Forum: User discussion
Topic: example_sparse.c failing to compile
Replies: 9
Views: 1711

Re: example_sparse.c failing to compile

The above compiles and runs only in Release mode.. Anyone can think of a reason for that? (which then I'll try to verify) EDIT: Dear Mike, or Hartwig, are you able to compile example_sparse.cpp with debug symbols? (-g flag in linux correct?) and statically? (-static flag in linux I believe) (https:/...
by dariofigueira
Thu Nov 08, 2018 3:26 pm
Forum: User discussion
Topic: Null pointer exception when solving
Replies: 2
Views: 736

Re: Null pointer exception when solving

Oh! I saw that in the example_sparse example, but I didn't understand it at the time due to missing this "All iterative solvers and eigensolvers included in the MAGMA-sparse package work on the device. Hence, it is required to send the respective data structures to the device for solving, and back t...
by dariofigueira
Thu Nov 08, 2018 2:35 pm
Forum: User discussion
Topic: Null pointer exception when solving
Replies: 2
Views: 736

Null pointer exception when solving

// Inputs: // Eigen::SparseMatrix<double> A // Eigen::VectorXd b magma_dopts opts; // Choose a solver, preconditioner, etc. - see documentation for options. opts.solver_par.solver = Magma_PIDRMERGE; opts.solver_par.restart = 8; opts.solver_par.maxiter = 1000; opts.solver_par.rtol = 1e-10; opts.solv...
by dariofigueira
Wed Nov 07, 2018 11:12 am
Forum: User discussion
Topic: example_sparse.c failing to compile
Replies: 9
Views: 1711

Re: example_sparse.c failing to compile

Finally compiling and running. Here is the CMakeLists.txt that did it add_executable(magma-test example_sparse.cpp) find_package( CUDA ) set( MKLROOT "D:/Program Files (x86)/IntelSWTools/parallel_studio_xe_2019.0.045/compilers_and_libraries_2019/windows/mkl" ) set( LAPACK_LIBRARIES "D:/Program Files...
by dariofigueira
Wed Nov 07, 2018 10:48 am
Forum: User discussion
Topic: Bulding a shared library on Windows
Replies: 6
Views: 3286

Re: Bulding a shared library on Windows

Hi jlangworthy,

Would you kindly attach here (or post a link to) the end result CMakeLists.txt you used? Both to compile MAGMA, and then to compile your own code using MAGMA later?

Thank you
by dariofigueira
Mon Nov 05, 2018 3:01 pm
Forum: User discussion
Topic: example_sparse.c failing to compile
Replies: 9
Views: 1711

Re: example_sparse.c failing to compile

The example code compiler arguments line generated is /GS /TP /W3 /Zc:wchar_t /I"D:\Work\Magma\magma-2.4.0\include" /I"D:\Work\Magma\magma-2.4.0\sparse\include" /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" /Zi /Gm- /Od /Ob0 /Fd"magma-test.dir\Debug\vc141.pdb" /Zc:inline /fp:p...
by dariofigueira
Mon Nov 05, 2018 10:44 am
Forum: User discussion
Topic: example_sparse.c failing to compile
Replies: 9
Views: 1711

Re: example_sparse.c failing to compile

Just attempted to compile in Release and 1>magma.lib(interface.obj) : error LNK2019: unresolved external symbol MKL_Get_Version referenced in function magma_print_environment 1>magma.lib(interface.obj) : error LNK2019: unresolved external symbol MKL_Get_Max_Threads referenced in function magma_print...
by dariofigueira
Sat Nov 03, 2018 5:44 pm
Forum: User discussion
Topic: example_sparse.c failing to compile
Replies: 9
Views: 1711

Re: example_sparse.c failing to compile

Ok, I just determined this is reproducible in my machine: - I just deleted MAGMA folder completely - and did a complete rebuild, *just* in Debug mode, as described in https://stackoverflow.com/questions/53132124/list-of-causes-for-lnk2038-msvs2017-magma - and the same behavior was observed I'm now a...
by dariofigueira
Sat Nov 03, 2018 8:45 am
Forum: User discussion
Topic: example_sparse.c failing to compile
Replies: 9
Views: 1711

Re: example_sparse.c failing to compile

the magma compilation command line parameters are: /MP /GS /TP /W4 /Zc:wchar_t /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" /I"D:\Program Files (x86)\IntelSWTools\parallel_studio_xe_2019.0.045\compilers_and_libraries_2019\windows\mkl\include" /I"D:\Work\Magma\magma-2.4.0\inc...