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

QRDecomposition using LAPACK package

Patil__Rupali
Beginner
217 Views
Hello, I am doing QR decomposition using LAPACKE_dgeqrf() function. Strangely it works fine on my windows Desktop but when I run same code on other windows desktop it gives error as 5th parameter is illegal. Here is the example, Double input[5][4] = { 1, 2, 3, 4 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }; Input is converted to 1D array. double test[20] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }; double tau[4] = { 0 }; lapack_int status ; status = LAPACKE_dgeqrf(LAPACK_ROW_MAJOR, 5, 4, test, 4, tau); Here, above function returns status '0' on my desktop but on other windows desktop it returns status as '-5'. Anyone have any idea, what is going wrong here?
0 Kudos
1 Reply
Gennady_F_Intel
Moderator
217 Views

what version of mkl do you use?

0 Kudos
Reply