On Tue, Oct 28, 2014 at 12:20 PM, Ralph Castain <r...@open-mpi.org> wrote:
> On Oct 28, 2014, at 12:17 PM, Paul Hargrove <phhargr...@lbl.gov> wrote: > > Ralph, > > The Cray's at NERSC have *both* pmi_cray.h and pmi.h (and pmi2.h as well). > > > I understand that - I was questioning if that is universally true or not. > IF we are guaranteed that nobody with a Cray ever renames pmi_cray.h to > pmi.h, THEN your check will be fine. Otherwise, we can't trust it. > > And I seem to recall that the earlier Crays, at least, didn't have this > naming distinction - or at least, not at LANL. Hence my question. > Fair enough. I would say anybody moving or renaming files provided by Cray gets what they deserve. However, since I have no way to confirm older or future systems, I cannot answer your question with an affirmative. What about checking for the presence of pmi_cray_ext.h? Is that any better? So, if one is not going to trust ANY filenames, one might instead see if pmi.h and libpmi.* provide Cray's extensions. If there are Cray extensions used by OPAL/ORTE/OMPI, then checking for those would be "the right way" anyway. -Paul -- Paul H. Hargrove phhargr...@lbl.gov Future Technologies Group Computer and Data Sciences Department Tel: +1-510-495-2352 Lawrence Berkeley National Laboratory Fax: +1-510-486-6900