Re: [OMPI devel] RFC: make hwloc be a 1st-class citizen

2011-09-12 Thread Jeff Squyres
This RFC was committed to the trunk yesterday. Please let us know if you run into any problems with it. *** Remember that although the opal_hwloc_topology global variable will always be available, ##IT MAY BE NULL## on platforms where hwloc was compiled out / not supported. Therefore, you MUS

Re: [OMPI devel] RFC: make hwloc be a 1st-class citizen

2011-09-12 Thread Jeff Squyres
On Sep 12, 2011, at 8:51 AM, Jeff Squyres wrote: > *** Remember that although the opal_hwloc_topology global variable will > always be available, ##IT MAY BE NULL## on platforms where hwloc was compiled > out / not supported. Therefore, you MUST protect access to hwloc API calls > with #if OPA

Re: [OMPI devel] RFC: make hwloc be a 1st-class citizen

2011-09-12 Thread Kenneth Lloyd
According to http://gcc.gnu.org/onlinedocs/cpp/If.html "The `#if' directive allows you to test the value of an arithmetic expression, rather than the mere existence of one macro." Is the objective to test for the existence of the macro, its value, or its value IFF it exists? Ken Lloyd -Orig

Re: [OMPI devel] RFC: make hwloc be a 1st-class citizen

2011-09-12 Thread Jeff Squyres
OPAL_HAVE_HWLOC will always be defined to 0 or 1. On Sep 12, 2011, at 9:46 AM, Kenneth Lloyd wrote: > According to http://gcc.gnu.org/onlinedocs/cpp/If.html > > "The `#if' directive allows you to test the value of an arithmetic > expression, rather than the mere existence of one macro." > > Is