mpirun: allocating CPUs

Basic mpirun order is, “mpirun -np 4 ./Bin/regcmMPI”.

But, it will be trouble thing if the run use the cpu at log-in node.

So, allocating cpu where you want to allocate is necessary.


under the “MPICH1” environment,

(1) creates mpd.hosts file for allocating CPUs

form) nodename:cpu_number


f00:0   (<- the node for log-in)




total cpu is 12.


(2) execution

mpirun -np 12 -machinefile mpd.hosts ./Bin/regcmMPI


then, allocating cpu to log-in node can be avoided.


Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.