Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Cannot run SVD on Armadillo linked with MKL

Matthew_H_
Beginner
384 Views

Hi, I am trying to run an SVD on a 19016x19016 matrix on my Mac OSX Mavericks with Armadillo linked to Intel MKL. But I get the following error: ./example SVD Start: 19016 19016 0.000000 ** On entry to DGESDD, parameter number 12 had an illegal value error: svd(): failed to converge Here is my code: #define ARMA_DONT_USE_WRAPPER #include mat U, V, A; vec s; svd(U,s,V,A); I make the program with: g++-4.2 -O3 -framework Accelerate example.cpp mmio.cpp -o example

0 Kudos
2 Replies
Matthew_H_
Beginner
384 Views

It looks like I'm having some problems with text formatting:

Matthew H. wrote:

Hi, I am trying to run an SVD on a 19016x19016 matrix on my Mac OSX Mavericks with Armadillo linked to Intel MKL.

But I get the following error:

/example SVD Start: 19016 19016 0.000000

** On entry to DGESDD, parameter number 12 had an illegal value error:

svd(): failed to converge

Here is my code:

#define ARMA_DONT_USE_WRAPPER

#include mat U, V, A;

vec s;

svd(U,s,V,A);

I make the program with:

g++-4.2 -O3 -framework Accelerate example.cpp mmio.cpp -o example

0 Kudos
Ying_H_Intel
Employee
384 Views

Hi Matthew,

What is your MKL version?

I guess, you have read the thread http://software.intel.com/en-us/forums/topic/390568  and http://software.intel.com/en-us/forums/topic/368412

As we haven't Armadillo , could you please try the same matrix in C code as the above thread 390568 and let us know if it works or not?

Best Regards,

Ying

0 Kudos
Reply