Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7284 토론

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

Argyris
초급자
3,849 조회수

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 포인트
5 응답
VarshaS_Intel
중재자
3,785 조회수

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 포인트
Argyris
초급자
3,751 조회수

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 포인트
VarshaS_Intel
중재자
3,679 조회수

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 포인트
VarshaS_Intel
중재자
3,599 조회수

Hi,


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


Thanks & Regards,

Varsha


0 포인트
VarshaS_Intel
중재자
3,544 조회수

Hi,


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


Thanks & Regards,

Varsha


0 포인트
응답