Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [OMPI users] How to Read the Rank from the MPI_TASK
From: deepak mehta (godeepakm_at_[hidden])
Date: 2013-05-10 16:39:34

Hello All,I am new user to this mailing list and am trying to get familiar with mpi.I am using open mpi version 1.4.3I have a simple shell script that I have writtenThe Shell Script that I have is as<code>#!/bin/bashecho " Hello World from Rank $rank"<code>
The MPI Command that I am executing is as followsmpirun -np 3
What I want to know how what parameter do I need to pass from the mpirun command line so that I can read the rank for each task within my helloWorld Shell Script.
Please excuse me if this is a duplicate entry. I have searched through all the forums and did not get the answer to my question.Thanks in advance for all your help.Regards,Deepak