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

Intel-MPI 2022.2 issue with MPI_INIT function (Access violation reading location 0x0000000000000000)

Argyris
Beginner
1,732 Views

Hello,

 

I have the following issue when working in debug mode and trying to use MPI with a single thread. Specifically, I try to run the example "cl_solver_export_c.c" from MKL v2023.2.0 package.

 

MPI_INIT(NULL, NULL) throws an exception "Access violation reading location 0x0000000000000000".

 

int argc = 0;

char** argv;

MPI_INIT(&argc, &argv) throws the same exception.

 

How am I supposed to use MPI_INIT correctly?

 

P.S. as a reproducer you can use your own example "cl_solver_export_c.c" in debug mode.

 

Thanks,

Argyris

 

 

0 Kudos
5 Replies
VarshaS_Intel
Moderator
1,668 Views

Hi,

 

Thanks for posting in Intel Communities.

 

Could you please let us know the OS details, exact Intel MPI version and Visual Studio version you are using?

 

Also, could you please provide us with the complete Visual Studio Project you are using so we could reproduce the same issue on our end?

 

When we tried you using the MKL Sample code "cl_solver_export_c.c" on Intel oneAPI Command Prompt using the 2023.2 version, we are able to get the expected results without any errors. Please find the attached screenshot for more details.

 

Thanks & Regards,

Varsha

 

0 Kudos
Argyris
Beginner
1,634 Views

Hi,

 

thanks for the reply.

  • the OS is Windows 11 64-bit
  • the Visual Studio version is Professional 2019
  • the Intel MPI version is 2022.2
  • the libs I link are mkl_rt.lib, mkl_core.lib, mkl_blacs_intelmpi_lp64.lib, mkl_intel_lp64.lib, mkl_sequential.lib and impi.lib

P.S. your example "cl_solver_export_c.c" works fine if I run it in release mode. When I switch to debug mode, the exception I mentioned above is being thrown. 

 

Thanks,

Argyris

0 Kudos
VarshaS_Intel
Moderator
1,562 Views

Hi,

 

Thanks for your reply.

 

When we tried you using the MKL Sample code "cl_solver_export_c.c" on Visual Studio in Debug mode, we are able to get the expected results without any errors.

 

Could you please find the attached zip file where we are able to run successfully and could you please let us know if you are getting any errors?

 

Thanks & Regards,

Varsha

 

0 Kudos
VarshaS_Intel
Moderator
1,482 Views

Hi,


We have not heard back from you. Could you please provide us with an update on your issue?


Thanks & Regards,

Varsha


0 Kudos
VarshaS_Intel
Moderator
1,427 Views

Hi,


We have not heard back from you. Could you please provide us with an update on your issue?


Thanks & Regards,

Varsha


0 Kudos
Reply