Re: [OMPI users] Rank specific argument to mpirun

2016-07-29 Thread Saliya Ekanayake
I tested and the number of ranks in world comm is correct. I couldn't find the bug that causes the program to produce erroneous answers when this scheme is used, though. On Fri, Jul 29, 2016 at 3:38 PM, Saliya Ekanayake wrote: > Thank you, that's good to know. > > Yes, testing this now. I'll let

Re: [OMPI users] Rank specific argument to mpirun

2016-07-29 Thread Saliya Ekanayake
Thank you, that's good to know. Yes, testing this now. I'll let you know On Fri, Jul 29, 2016 at 3:33 PM, Ralph Castain wrote: > FWIW: I just tested it on master, and all the procs are in the same > comm_world. However, that was with a C application, not Java. > > Saliya: can you please check t

Re: [OMPI users] Rank specific argument to mpirun

2016-07-29 Thread Ralph Castain
FWIW: I just tested it on master, and all the procs are in the same comm_world. However, that was with a C application, not Java. Saliya: can you please check to see if Java is behaving differently? A simple app that gets and prints out its rank is all that is required. > On Jul 29, 2016, at 1

Re: [OMPI users] Rank specific argument to mpirun

2016-07-29 Thread Saliya Ekanayake
Thanks, Udayanga. I'll check this. Ralph, I'll try to print some debug info from the code and check why this logic fails and will let you know. On Fri, Jul 29, 2016 at 3:18 PM, Ralph Castain wrote: > Actually, what Saliya describes sounds like a bug - those procs must all > be assigned to the s

Re: [OMPI users] Rank specific argument to mpirun

2016-07-29 Thread Ralph Castain
Actually, what Saliya describes sounds like a bug - those procs must all be assigned to the same comm_world. Saliya: are you sure they are not? What ranks are you seeing? > On Jul 29, 2016, at 12:12 PM, Udayanga Wickramasinghe > wrote: > > Hi, > I think orte/ompi-mca foward number of environ

Re: [OMPI users] Rank specific argument to mpirun

2016-07-29 Thread Udayanga Wickramasinghe
Hi, I think orte/ompi-mca foward number of environment variables (ie:- $OMPI_*) to its ranks. So I believe you may use $OMPI_COMM_WORLD_LOCAL_RANK to specifically filter out parameters within the script. Regards Udayanga Wickramasinghe Research Assistant School of Informatics and Computing | CREST

[OMPI users] Rank specific argument to mpirun

2016-07-29 Thread Saliya Ekanayake
Hi, I am invoking my Java MPI program as, mpirun opts script.sh Now, I want to pass some rank specific argument to this script. For example, I need to enable GC logs for one of the processes only, so I need to pass an argument to the JVM if that's rank0 to do GC logs. I've asked the same questi