Re: [hwloc-users] Re : Re : hwloc topology check initializing

2011-09-03 Thread Samuel Thibault
Gabriele Fatigati, le Sat 03 Sep 2011 16:09:11 +0200, a écrit : > What about hwloc_topology check()? > > What types of check does? Mostly that the hwloc library itself didn't do anything wrong. Samuel

Re: [hwloc-users] Re : Re : hwloc topology check initializing

2011-09-03 Thread Gabriele Fatigati
What about hwloc_topology check()? What types of check does? 2011/9/3 Brice Goglin > > There's no way to implement this check safely (being non NULL doesn't mean > it was properly initialized by the user, it could still point to random > memory that would cause a

[hwloc-users] Re : Re : hwloc topology check initializing

2011-09-03 Thread Brice Goglin
There's no way to implement this check safely (being non NULL doesn't mean it was properly initialized by the user, it could still point to random memory that would cause a segfault when checking). If you really need something like this, put an integer value on the side of the topology

Re: [hwloc-users] Re : hwloc topology check initializing

2011-09-03 Thread Gabriele Fatigati
Hi Brice, but it works only if the user assing NULL to topology. hwloc_topology_init() does not check the argument passed ? There are no ways to check if topology is initialized or not? Thanks. 2011/9/3 Brice Goglin > > Assign NULL to the topology when declaring the