mpirun: allocating CPUs

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

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

(ex)———————————

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

f01:6

f02:6

—————————————

total cpu is 12.

 

(2) execution

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

 

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:

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