Quantcast
Channel: Clusters and HPC Technology
Viewing all articles
Browse latest Browse all 927

What is the correct way to kill MPI program on Windows?

$
0
0

Hi:

I install Intel MPI 2019 update 7 on Windows 10 professional. Then I run IMB-MPI1.exe by the following command.

mpiexec -localonly -n 4 IMB-MPI1.exe

I know that using Ctrl+C in the same console window will kill all related processes (mpiexec.exe, hydra_pmi_proxy.exe, and four IMB-MPI1.exe).

But how to kill MPI program by other program ?

I have tried 2 ways but both of them can't kill MPI program clean.

1. taskkill /F /PID {process id of mpiexec.exe}   --> mpiexec.exe is killed and returned, but hydra_pmi_proxy.exe and IMB-MPI1.exe are still alive.

2. Send Ctrl+C event to mpiexec.exe by another program. I use the code from https://github.com/alirdn/windows-kill and send SIGINT to mpiexec.exe --> mpiexec.exe is killed and returned, but hydra_pmi_proxy.exe and IMB-MPI1.exe are still alive.

 

For Intel MPI 2018 on Windows, just kill mpiexec.exe and all related processes (mpiexec.exe, pmi_proxy.exe, IMB_MPI1.exe) are killed.

 

regards,

Jim

 

 

 

 

 


Viewing all articles
Browse latest Browse all 927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>