Community
cancel
Showing results for 
Search instead for 
Did you mean: 
kwei89
Beginner
49 Views

DPBTRF does not work for me on Windows x64

The following code works fine with Win32 configuration, but the call to dpbtrf returns -2, indicating that the second parameter of the call is incorrect. Help please.

#include "mkl_lapack.h"

int main(int nargs, char** argv)

{

char uplo = 'U';

int info = 0, dim = 12, kd = 3, lda = 4;

double b[] = {0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1,

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3};

double c[] = {0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 3,

-1, 0, 0, 3, -1, 0, 0, 3,

-1, 0, 0, 3, -1, 0, 0, 3,

-1, 0, 0, 3, -1, 0, 0, 3,

-1, 0, 0, 3, -1, 0, 0, 3,

-1, 0, 0, 3};

dpbtrf(&uplo, &dim, &kd, c, &lda, &info);

return info;

}


The compiler and linker settings for x64 is listed below.

/Od /I "C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\051\\mkl\\include" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Fo"x64\\Debug\\\\" /Fd"x64\\Debug\\vc90.pdb" /W3 /nologo /c /Zi /TP /errorReport:prompt

/OUT:"D:\\Tester\\Test64Lapack\\x64\\Debug\\Test64Lapack.exe" /NOLOGO /LIBPATH:"C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\051\\mkl\\em64t\\lib" /LIBPATH:"C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\051\\lib\\intel64" /MANIFEST /MANIFESTFILE:"x64\\Debug\\Test64Lapack.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"d:\\Tester\\Test64Lapack\\x64\\Debug\\Test64Lapack.pdb" /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ERRORREPORT:PROMPT mkl_intel_ilp64.lib mkl_core.lib mkl_lapack95_ilp64.lib mkl_intel_thread.lib libiomp5md.lib libifcoremd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
0 Kudos
0 Replies
Reply