Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: [hwloc-devel] Strange difference
From: Ralph Castain (rhc_at_[hidden])
Date: 2013-10-12 14:37:35

Yo guys

I was doing some work that involved traversing the hwloc topo tree, and encountered the following odd discrepancy.

hwloc_topology_get_depth => returns "unsigned"

hwloc_get_type_depth => returns "int"

Why the difference? Makes it hard sometimes to avoid the "comparison between unsigned and signed" warnings when using these functions.