Assign NULL to the topology when declaring the variable. It will be changed 
into something else when init() is called.

Brice

----- Reply message -----
De : "Gabriele Fatigati" <g.fatig...@cineca.it>
PourĀ : "Hardware locality user list" <hwloc-us...@open-mpi.org>
Objet : [hwloc-users] hwloc topology check initializing
Date : sam., sept. 3, 2011 10:56




Dear hwloc users,

how to check if my hwloc topology is initialized? I have to use
hwloc_topology_check? This code not works:

hwloc_topology_t topology;

if( topology==NULL)
  exit(-1);





-- 
Ing. Gabriele Fatigati

HPC specialist

SuperComputing Applications and Innovation Department

Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy

www.cineca.it                    Tel:   +39 051 6171722

g.fatigati [AT] cineca.it

Reply via email to