# MD run using MPI on HPC

**URL:** <https://gromacs.bioexcel.eu/t/md-run-using-mpi-on-hpc/7420>\
**Category:** User discussions\
**Tags:** mdrun\
**Created:** [October 17, 2023, 9:46am UTC](https://gromacs.bioexcel.eu/t/md-run-using-mpi-on-hpc/7420 "2023-10-17T09:46:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachin\_Rajpoot](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@Sachin\_Rajpoot](https://gromacs.bioexcel.eu/u/Sachin_Rajpoot)\
**Post date:** [October 17, 2023, 9:46am UTC](https://gromacs.bioexcel.eu/t/md-run-using-mpi-on-hpc/7420/1 "2023-10-17T09:46:50Z")

</div>

GROMACS version:2022.1  
GROMACS modification: Yes/No  
Good Morning everyone,  
I am using Gromacs installed on our institute’s HPC

:-) GROMACS - gmx\_mpi, 2022.1 (-:

When I ran **nohup mpirun -hosts r2n1 r2n2 r2n3 r3n1 r3n2 -np 120 gmx\_mpi mdrun -v -deffnm md\_100**  
where r2n1, r2n2… are the names of nodes used for MPI run.

My run got terminated immediately and I got the following error:  
[proxy:0:0@r2n1] HYDU\_create\_process (utils/launch/launch.c:75): execvp error on file r2n2 (No such file or directory)

# =================================================================================== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = PID 148862 RUNNING AT r2n1 = EXIT CODE: 255 = CLEANING UP REMAINING PROCESSES = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES

thanks for your time and guidance  
looking forward to your suggestions

---

<div class="post-metadata">

**Author:** ![giacomo.fiorin](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/giacomo.fiorin/32/2862_2.png) [@giacomo.fiorin](https://gromacs.bioexcel.eu/u/giacomo.fiorin)\
**Post date:** [October 17, 2023, 3:02pm UTC](https://gromacs.bioexcel.eu/t/md-run-using-mpi-on-hpc/7420/2 "2023-10-17T15:02:14Z")

</div>

> [@Sachin\_Rajpoot](#):
>
> [proxy:0:0@r2n1] HYDU\_create\_process (utils/launch/launch.c:75): execvp error on file r2n2 (No such file or directory)

Perhaps you need to give the full path to the GROMACS executable? Regardless, I would try first running a simple program like /bin/hostname to first troubleshoot issues with the MPI and queue system’s setup.

Giacomo

---

<div class="post-metadata">

**Author:** ![Sachin\_Rajpoot](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@Sachin\_Rajpoot](https://gromacs.bioexcel.eu/u/Sachin_Rajpoot)\
**Post date:** [October 23, 2023, 9:59am UTC](https://gromacs.bioexcel.eu/t/md-run-using-mpi-on-hpc/7420/3 "2023-10-23T09:59:05Z")

</div>

respected @giacomo.fiorin  
Thanks for replying and suggesting the fix, I tried adding the path but now it runs on 2 nodes (atleast) , when i try to use all 10 nodes  
**plus** I ran following (in bold) command for all 10 nodes available to me on our institute HPC

```console
(base) [neeraj@master 6cu_pro_MD]$ **mpirun -hosts </etc/hosts> r1n1 r1n2 r1n3 r1n4 r2n1 r2n2 r2n3 r2n4 r3n1 r3n2 -np 240 gmx_mpi mdrun -v -deffnm npt**
[proxy:0:0@r1n2] HYDU_create_process (utils/launch/launch.c:75): execvp error on file **r1n3 (No such file** or directory)

(base) [neeraj@master 6cu_pro_MD]$ mpirun -hosts </etc/hosts> r1n1 r1n2 r1n4 r2n1 r2n2 r2n3 r2n4 r3n1 r3n2 -np 240 gmx_mpi mdrun -v -deffnm npt

```

**And if remove the node(like r1n3) which is not found then following happens**

```console
[proxy:0:0@r1n2] HYDU_create_process (utils/launch/launch.c:75): execvp error on file r1n4 (No such file or directory)
(base) [neeraj@master 6cu_pro_MD]$ mpirun -hosts </etc/hosts> r1n1 r1n2 r2n1 r2n2 r2n3 r2n4 r3n1 r3n2 -np 240 gmx_mpi mdrun -v -deffnm npt
[proxy:0:0@r1n2] HYDU_create_process (utils/launch/launch.c:75): execvp error on file r2n1 (No such file or directory)

```

So basically only first 2 nodes are taken/used in MPI and the 3rd consecutive node is not found eventhough path is given  
Sir, please suggest something, What to do?

---

<div class="post-metadata">

**Author:** ![giacomo.fiorin](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/giacomo.fiorin/32/2862_2.png) [@giacomo.fiorin](https://gromacs.bioexcel.eu/u/giacomo.fiorin)\
**Post date:** [October 23, 2023, 1:53pm UTC](https://gromacs.bioexcel.eu/t/md-run-using-mpi-on-hpc/7420/4 "2023-10-23T13:53:37Z")

</div>

Sorry, but I was simply suggesting a way to identify potential issues with MPI and queuing system. _Nobody_ is in a position to suggest a fix yet.

My best recommendation is to make sure that you are launching a MPI program correctly for your cluster. This is something that only the people who maintain it can know for sure.

Giacomo

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [October 24, 2023, 6:00am UTC](https://gromacs.bioexcel.eu/t/md-run-using-mpi-on-hpc/7420/5 "2023-10-24T06:00:19Z")

</div>

I agree with Giacomo. You first need to check that your syntax for running the commands on your system is correct. Your local system administrators are probably better at that than we are. But … unless you have a very customized mpi version I would also try, e.g.:  
`mpirun --host r1n1,r1n2,r2n1,r2n2,r2n3,r2n4,r3n1,r3n2 -np 240 gmx_mpi mdrun -v -deffnm npt`
