Re: [OMPI users] Passing a rank specific argument to the JVM

2015-07-20 Thread Saliya Ekanayake
Thank you. This is very nice! On Sun, Jul 19, 2015 at 2:25 PM, Ralph Castain wrote: > Yes > > On Jul 19, 2015, at 10:47 AM, Saliya Ekanayake wrote: > > 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 on

Re: [OMPI users] Passing a rank specific argument to the JVM

2015-07-19 Thread Ralph Castain
Yes > On Jul 19, 2015, at 10:47 AM, Saliya Ekanayake wrote: > > 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 ru

Re: [OMPI users] Passing a rank specific argument to the JVM

2015-07-19 Thread Saliya Ekanayake
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

Re: [OMPI users] Passing a rank specific argument to the JVM

2015-07-19 Thread Ralph Castain
Or you can just do (assuming you don’t have a large number of ranks): mpirun -np 1 java MyProgram : -np 1 java MyProgram They will all wind up in the same comm_world. > On Jul 19, 2015, at 12:30 AM, Nick Papior wrote: > > Wrap the call in a bash script or the like, there are several exampl

Re: [OMPI users] Passing a rank specific argument to the JVM

2015-07-19 Thread Nick Papior
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" wrote: > Hi, > > I am trying to profile one of our applications and would like each rank to > report to a

[OMPI users] Passing a rank specific argument to the JVM

2015-07-19 Thread Saliya Ekanayake
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 MyProgram Note the po