Distribute MPI processes into more than nodes

assalamu’alaikum warahmatullahi wabarakatuh…

to distribute mpi processes accross two nodes or more, first we must prepare a textfile containing list of the nodes. for example,

sol07
sol07
sol07
sol07
sol08
sol08
sol08
sol08

and then, we can use –hostfile option to distribute our mpirun processes.

mpirun –hostfile my_hostfile -np 8 /usr/local/nwchem-6.3/bin/LINUX64/nwchem ni-2h2o.nw

then, we can check the process in sol07 and sol08 using top and you will see 4 processess in each nodes🙂

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s