So does this mean I can have different options for each process by separating them with colons? That'll be ideal for me, because profiling one rank would be enough, so I can pass a port only to that rank and let others just run. Is this the case?
Thank you, Saliya On Sun, Jul 19, 2015 at 11:29 AM, Ralph Castain <r...@open-mpi.org> wrote: > Or you can just do (assuming you don’t have a large number of ranks): > > mpirun -np 1 java <port-for-rank0> MyProgram : -np 1 java <port-for-rank2> > MyProgram > > They will all wind up in the same comm_world. > > > On Jul 19, 2015, at 12:30 AM, Nick Papior <nickpap...@gmail.com> wrote: > > 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 >> > _______________________________________________ > 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/27288.php > > > > _______________________________________________ > 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/27289.php > -- 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