Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Question about PARDISO in MKL 7.2

dlutzx
Beginner
785 Views
Hello all:
I am a new user of MKL, I wanted to use the PARDISO function.
My system is visual.net 2003, MKL 7.2. I modified the example "pardiso_unsym.c" into a project which is attached. the error message
is:
sparse fatal error LNK1120: 2 unresolved externals
sparse error LNK2019: unresolved external symbol "int __cdecl omp_get_max_threads(void)" (?omp_get_max_threads@@YAHXZ) referenced in function _main
sparse error LNK2019: unresolved external symbol "int __cdecl PARDISO(void *,int *,int *,int *,int *,int *,double *,int *,int *,int *,int *,int *,int *,double *,double *,int *)" (?PARDISO@@YAHPAXPAH1111PAN111111221@Z) referenced in function _main
I am puzzled that I didn't found the declartion of PARDISOin any head files.
If it is from Fortran lib, should I install Intel Fortran Compiler?

0 Kudos
1 Reply
Intel_C_Intel
Employee
785 Views
The example is really a C example, and not a C++ example. The unsatisfied references are the C++ decortated names generated off PARDISO() and omp_get_max_threads(). You need to declare these functions a C external functions (take a look at our mkl_blas.h header file to see how this can be done. Having said that, I think we can improve this example including perhaps adding some header support. Alternatively you coudl use the DSS interface, which is the interface that was orginally defined by CXML (Compaq eXtended Math Library) for PARDISO and which we have adopted. There is header support for this implementation and both the code is the same code that executes when you call PARDISO. Bruce
0 Kudos
Reply