[OMPI devel] Getting process PID
In OpenMPI 1.0, I was able to get the PID's for each process by querying the ORTE_PROCESS_PID_KEY. This no longer seems to work in 1.2. Can someone let me know how I can get hold of the PID's regardless of the pls? Greg
Re: [OMPI devel] Getting process PID
Hi Greg All of the schema keys are listed in orte/mca/schema/schema_types.h. The key you are looking for is the ORTE_PROC_LOCAL_PID_KEY. You will also see a ORTE_PROC_PID_KEY. This one refers to the pid assigned by the launcher - the other refers to the pid reported by the process from its remote node. Ralph On 11/9/06 11:44 AM, "Greg Watson" wrote: > In OpenMPI 1.0, I was able to get the PID's for each process by > querying the ORTE_PROCESS_PID_KEY. This no longer seems to work in > 1.2. Can someone let me know how I can get hold of the PID's > regardless of the pls? > > Greg > > ___ > devel mailing list > de...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/devel
Re: [OMPI devel] Getting process PID
I tried ORTE_PROC_LOCAL_PID_KEY but it just returns 0 on MacOSX. Greg On Nov 9, 2006, at 1:31 PM, Ralph H Castain wrote: Hi Greg All of the schema keys are listed in orte/mca/schema/ schema_types.h. The key you are looking for is the ORTE_PROC_LOCAL_PID_KEY. You will also see a ORTE_PROC_PID_KEY. This one refers to the pid assigned by the launcher - the other refers to the pid reported by the process from its remote node. Ralph On 11/9/06 11:44 AM, "Greg Watson" wrote: In OpenMPI 1.0, I was able to get the PID's for each process by querying the ORTE_PROCESS_PID_KEY. This no longer seems to work in 1.2. Can someone let me know how I can get hold of the PID's regardless of the pls? Greg ___ devel mailing list de...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/devel ___ devel mailing list de...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/devel
Re: [OMPI devel] Getting process PID
Hmmm...let me check it out - will get back to you later today. Sorry for the problem Ralph On 11/9/06 3:07 PM, "Greg Watson" wrote: > I tried ORTE_PROC_LOCAL_PID_KEY but it just returns 0 on MacOSX. > > Greg > > On Nov 9, 2006, at 1:31 PM, Ralph H Castain wrote: > >> Hi Greg >> >> All of the schema keys are listed in orte/mca/schema/ >> schema_types.h. The key >> you are looking for is the ORTE_PROC_LOCAL_PID_KEY. >> >> You will also see a ORTE_PROC_PID_KEY. This one refers to the pid >> assigned >> by the launcher - the other refers to the pid reported by the >> process from >> its remote node. >> >> Ralph >> >> >> On 11/9/06 11:44 AM, "Greg Watson" wrote: >> >>> In OpenMPI 1.0, I was able to get the PID's for each process by >>> querying the ORTE_PROCESS_PID_KEY. This no longer seems to work in >>> 1.2. Can someone let me know how I can get hold of the PID's >>> regardless of the pls? >>> >>> Greg >>> >>> ___ >>> devel mailing list >>> de...@open-mpi.org >>> http://www.open-mpi.org/mailman/listinfo.cgi/devel >> >> >> ___ >> devel mailing list >> de...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/devel > > ___ > devel mailing list > de...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/devel
Re: [OMPI devel] Getting process PID
I've checked the code and it looks like it is putting it in LOCAL_PID_KEY. Could you send me the code where you are accessing this info? Thanks Ralph On 11/9/06 3:39 PM, "Ralph H Castain" wrote: > Hmmm...let me check it out - will get back to you later today. > > Sorry for the problem > Ralph > > > On 11/9/06 3:07 PM, "Greg Watson" wrote: > >> I tried ORTE_PROC_LOCAL_PID_KEY but it just returns 0 on MacOSX. >> >> Greg >> >> On Nov 9, 2006, at 1:31 PM, Ralph H Castain wrote: >> >>> Hi Greg >>> >>> All of the schema keys are listed in orte/mca/schema/ >>> schema_types.h. The key >>> you are looking for is the ORTE_PROC_LOCAL_PID_KEY. >>> >>> You will also see a ORTE_PROC_PID_KEY. This one refers to the pid >>> assigned >>> by the launcher - the other refers to the pid reported by the >>> process from >>> its remote node. >>> >>> Ralph >>> >>> >>> On 11/9/06 11:44 AM, "Greg Watson" wrote: >>> In OpenMPI 1.0, I was able to get the PID's for each process by querying the ORTE_PROCESS_PID_KEY. This no longer seems to work in 1.2. Can someone let me know how I can get hold of the PID's regardless of the pls? Greg ___ devel mailing list de...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/devel >>> >>> >>> ___ >>> devel mailing list >>> de...@open-mpi.org >>> http://www.open-mpi.org/mailman/listinfo.cgi/devel >> >> ___ >> devel mailing list >> de...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/devel > > > ___ > devel mailing list > de...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/devel