Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
20 Views

example files fail when compiled on windows

Hi,

I've recently compiled mkl example files like pardiso_unsym_c.c and others on windows using pgi compilers. Specifically, I use the lines

set "MKL_ROOT=C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.1.144\windows\mkl"

set "MKL_LIBS=%MKL_ROOT%\lib\intel64_win"

pgcc -DMKL_ILP64 -I"%MKL_ROOT%\include" -c pardiso_unsym_c.c

pgcc pardiso_unsym_c.obj -L"%MKL_LIBS%" mkl_intel_ilp64.lib mkl_sequential.lib mkl_core.lib


It compiles without error. However, when I attempt to run the resultant .exe file, I get the error message

Error during symbolic factorisation: -1

The pardiso error codes (listed here) say this means there is "input inconsistency". As the error implies, this happens during the symbolic phase (line 121 in pardiso_unsym_c.c).

 

0 Kudos
3 Replies
Highlighted
Moderator
20 Views

Thanks for report. At the first glance everything looks correct.  I have no pgcc install on my side. Could you check the problem with Microsoft compiler? 

 

0 Kudos
Highlighted
Beginner
20 Views

Gennady F. (Intel) wrote:

Thanks for report. At the first glance everything looks correct.  I have no pgcc install on my side. Could you check the problem with Microsoft compiler? 

 



Hi,

No problem. I will try with the Microsoft compiler and see if the issue persists. FWIW When I switched from ILP64 to LP64, the examples compiled and ran successfully with pg compilers.

0 Kudos
Highlighted
Moderator
20 Views

using the same example, MKL 2019 u1, microsoft compiler, ILP64 mode, I see no problem on my side,

Below are more details about compiling, linking and execution outputs:

 cl /DMKL_ILP64  /I"MKL_ROOT\include" /Fe2019_cl.exe pardiso_unsym_c.c  

MKL_ROOT\mkl_intel_ilp64.lib  MKL_ROOT\mkl_sequential.lib MKL_ROOT\mkl_core.lib

 

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64

Copyright (C) Microsoft Corporation.  All rights reserved.

 

Microsoft (R) Incremental Linker Version 14.00.24215.1

Copyright (C) Microsoft Corporation.  All rights reserved.

 

/out:2019_cl.exe

 

Running:

2019_cl.exe

makefile

pardiso_unsym_c.c

pardiso_unsym_c.obj

 

C:\4_work\_Forums\u800726>

C:\4_work\_Forums\u800726>

C:\4_work\_Forums\u800726>2019_cl.exe

 

Reordering completed ...

Number of nonzeros in factors = 21

Number of factorization MFLOPS = 0

Factorization completed ...

 

Solving system with iparm[11] = 0 ...

 

The solution of the system is:

 x [0] = -0.522321

 x [1] = -0.008929

 x [2] =  1.220982

 x [3] = -0.504464

 x [4] = -0.214286

 

Relative residual = 2.275280e-16

 

Solving system with iparm[11] = 1 ...

 

The solution of the system is:

 x [0] = -0.220238

 x [1] = -0.029762

 x [2] =  0.395089

 x [3] = -0.290179

 x [4] =  0.116071

 

Relative residual = 7.021667e-17

 

Solving system with iparm[11] = 2 ...

 

The solution of the system is:

 x [0] = -0.220238

 x [1] = -0.029762

 x [2] =  0.395089

 x [3] = -0.290179

 x [4] =  0.116071

 

Relative residual = 1.216188e-16

C:\4_work\_Forums\u800726>

 

 

 

 

0 Kudos