Wrap the call in a bash script or the like, there are several examples on
this mailing list.

I am sorry I am not at my computer so cannot find them.
On 19 Jul 2015 06:34, "Saliya Ekanayake" <esal...@gmail.com> wrote:

> Hi,
>
> I am trying to profile one of our applications and would like each rank to
> report to a profiler through a specific port. This is a Java program, so
> the way I would like to do this is to pass the port as a command line
> argument to the JVM. For example,
>
> mpirun -np 2 java <port> MyProgram
>
> Note the port is passed as an option to the java command and not to the
> program. Now the port has to be different for the 2 MPI procs and I am not
> sure how this could be done.
>
> Any thoughts?
>
> Thank you,
> Saliya
>
> --
> Saliya Ekanayake
> Ph.D. Candidate | Research Assistant
> School of Informatics and Computing | Digital Science Center
> Indiana University, Bloomington
> Cell 812-391-4914
> http://saliya.org
>
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post:
> http://www.open-mpi.org/community/lists/users/2015/07/27287.php
>

Reply via email to