Re: [OMPI devel] toward a unique session directory

2016-09-15 Thread r...@open-mpi.org
Actually, you just use the envar that was previously cited on a different email thread: if (NULL != getenv(OPAL_MCA_PREFIX"orte_launch")) { /* you were launched by mpirun */ } else { /* you were direct launched */ } This is available from time of first instruction, so no worrie

Re: [OMPI devel] toward a unique session directory

2016-09-15 Thread Pritchard Jr., Howard
HI Gilles, From what point in the job launch are you needed to determine whether or not the job was direct launched? Howard -- Howard Pritchard HPC-DES Los Alamos National Laboratory On 9/15/16, 7:38 AM, "devel on behalf of Gilles Gouaillardet" wrote: >Ralph, > >that looks good to me. >

Re: [OMPI devel] toward a unique session directory

2016-09-15 Thread Gilles Gouaillardet
Ralph, that looks good to me. can you please remind me how to test if an app was launched by mpirun/orted or direct launched by the RM ? right now, which direct launch method is supported ? i am aware of srun (SLURM) and apron (CRAY), are there any other ? Cheers, Gilles On Thu, Sep 15, 2016

Re: [OMPI devel] toward a unique session directory

2016-09-15 Thread r...@open-mpi.org
> On Sep 15, 2016, at 12:51 AM, Gilles Gouaillardet wrote: > > Ralph, > > > > my reply is in the text > > > On 9/15/2016 11:11 AM, r...@open-mpi.org wrote: >> If we are going to make a change, then let’s do it only once. Since we >> introduced PMIx and the concep

Re: [OMPI devel] toward a unique session directory

2016-09-15 Thread Gilles Gouaillardet
Ralph, my reply is in the text On 9/15/2016 11:11 AM, r...@open-mpi.org wrote: If we are going to make a change, then let’s do it only once. Since we introduced PMIx and the concept of the string namespace, the plan has been to switch away from a numerical jobid and to the namespace. This e

Re: [OMPI devel] toward a unique session directory

2016-09-14 Thread r...@open-mpi.org
If we are going to make a change, then let’s do it only once. Since we introduced PMIx and the concept of the string namespace, the plan has been to switch away from a numerical jobid and to the namespace. This eliminates the issue of the hash altogether. If we are going to make a disruptive cha

[OMPI devel] toward a unique session directory

2016-09-14 Thread Gilles Gouaillardet
Ralph, On 9/15/2016 12:11 AM, r...@open-mpi.org wrote: Many things are possible, given infinite time :-) i could not agree more :-D The issue with this notion lies in direct launch scenarios - i.e., when procs are launched directly by the RM and not via mpirun. In this case, there is nobody