Running MPI ranks/processes on specific nodes

posted Thursday, June 01, 2006 2:47 PM by NileshL | 0 Comments


We have seen this question come up many times...I recall Ming Xu has already shed light on this in another post in another newsgroup but I think this post will make a bit easier for CCS users.




A user wants to run:

o    rank 0 on node h1,

o    rank 1 on node h3,

o    rank 2 on node h2,

o    rank 3 on node h1


Steps to enable that scenario:


C:\> job submit /numprocessors:6 /askednodes:h1,h2,h3 mpiexec -hosts 4 h1 h3 h2 h1 <exe path>



o    The machines are dual-processors boxes

       /numprocessors:6 and askednodes:h1,h2,h3 gets three of those machines

o    "mpiexec -hosts 4 h1 h3 h2 h1" will place the rank 0 on h1, rank 1 on h3, rank 2 on h2, rank3 on h1