Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] compiler warnings in 1.2
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-04-27 12:21:02


Jeff Squyres, le Wed 27 Apr 2011 17:49:37 +0200, a écrit :
> topology-x86.c: In function ?\200\230summarize?\200\231:
> topology-x86.c:273:21: warning: ?\200\230one?\200\231 may be used uninitialized in this function
> topology-x86.c: In function ?\200\230look_proc?\200\231:
> topology-x86.c:222:61: warning: ?\200\230apic_id?\200\231 may be used uninitialized in this function

It's odd that I haven't seen those in my tests. I guess we don't
automatically add -O2?

> It's not immediately obvious to me what you want to do if these values are not initialized.

Actually it's "can't happen" cases: there should be no processor at all
for the first one, and the processor cpuid information has to suddenly
stop providing cache information for the second one.

Samuel