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

Intel MKL FATAL ERROR: Cannot load symbol MKLMPI_Get_wrappers with PETSC MKL CPARDISO

bodhinandach
Beginner
1,297 Views

I am trying to use the PETSC MKL Cluster Pardiso solver to solve a linear system of equations in our in-house parallel finite element code. The PETSC is configured using the following settings as instructed by this LINK :

./configure --with-mpi-dir=/usr/local/openmpi-4.1.5 --with-debugging=0 COPTFLAGS='-O3 -march=native -mtune=native' CXXOPTFLAGS='-O3 -march=native -mtune=native' FOPTFLAGS='-O3 -march=native -mtune=native' --with-blas-lapack-dir=/opt/intel/oneapi/mkl/2023.2.0/lib/intel64/ --with-mkl_pardiso-dir=/opt/intel/oneapi/mkl/2023.2.0/ --with-mkl_cpardiso-dir=/opt/intel/oneapi/mkl/2023.2.0/ --download-hypre=1

The PETSC compilation is successful. However, when I call CPardiso functions from my code I obtain the error:

Intel MKL FATAL ERROR: Cannot load symbol MKLMPI_Get_wrappers.

I saw some similar problems online (https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FATAL-ERROR-Cannot-load-symbol-MKLMPI-Get-wrappers/td-p/1140668) but weren't sure what is the solution for my code. I am a beginner in compilations of external libraries so any help will be appreciated.

0 Kudos
2 Replies
ShanmukhS_Intel
Moderator
1,250 Views

Hi,

 

Thanks for posting in Intel Communities.

 

Cross-verifying the installation:

Could you please cross-verify if you have correctly installed the Intel MKL library on your system and that it is compatible with your application? Make sure to use the appropriate version and architecture (32-bit or 64-bit) for your application.

Versioning and library:

Make sure you are not using multiple versions of Intel MKL and try recompiling and relinking your application with the correct Intel MKL settings. Make sure to link the appropriate MKL libraries during the compilation process with the correct library path.

 

In addition, we would like to request you to share a sample reproducer, environment details, and steps to reproduce(if any) so that we could try reproducing your issue at our end and help you accordingly if the issue persists despite the above changes.

 

Best Regards,

Shanmukh.SS

 

 

0 Kudos
ShanmukhS_Intel
Moderator
1,220 Views

Hi,


A gentle reminder:

Has the information provided helped? If not, could you please get back to us with the earlier requested details? It helps us triage the same and help you accordingly.


Best Regards,

Shanmukh.SS


0 Kudos
Reply