Intel® oneAPI Base Toolkit
Support for the core tools and libraries within the base toolkit that are used to build and deploy high-performance data-centric applications.
417 Discussions

Running an MPI program within visual studio 2019

galli_m
New Contributor I
1,050 Views


I had to re-submit this question from a previous
attempt (under the same title but in HPC...).

In configuration properties I have:

>Fortran>Additional Include Directories:

$(I_MPI_ONEAPI_ROOT)\include

>Linker>Additional Library Directories:

$(I_MPI_ONEAPI_ROOT)\lib\debug;$(I_MPI_ONEAPI_ROOT)\lib\

>Linker>Input>Additional Dependancies:

impi.lib libmpi_ilp64.lib


I build the solution and got my executable file.

I ran this file in the appropriate command prompt
(outside visual studio) and had no difficulties
running the program. (>mpiexec -np 12 mpi7)

I then tried running this within Visual Studio...
Debug>Start Without Debugging

I get a system error when the command prompt opens...
"The code execution cannot proceed because
impi.dll was not found"

I also tried "Open in terminal" where it does not
appear to give any output.

Finally under configuration properties I placed
entries in >Debugging>Command; in >Debugging>Command Arguments;
and in >Debugging>working directory....
No success.

I am trying to get visual studio to bring up the
appropriate command prompt and run my program.

I am not clear how to do this. Is running the executable
outside visual studio my only option?

 

0 Kudos
1 Reply
VidyalathaB_Intel
Moderator
1,019 Views

Hi Mike,

Thanks for reaching out to us.

As we can see that this query has been answered in Intel® oneAPI HPC Toolkit forum under the link.

https://community.intel.com/t5/Intel-oneAPI-HPC-Toolkit/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1275783#M8141

we are considering it as a duplicate thread and we will no longer monitor this query here in this forum.

Hence we are closing this thread from our side and any further interaction in this thread will be considered community only.

Have a good day

Thanks & Regards,

Vidya.


0 Kudos
Reply