- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We have not heard back from you. Could you please provide us with an update on your issue?
Thanks & Regards,
Varsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We have not heard back from you. Could you please provide us with an update on your issue?
Thanks & Regards,
Varsha

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page