- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
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?
Link copiado
1 Responder
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora