Open MPI logo

PLPA Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all PLPA Users mailing list

From: Bert Wesarg (wesarg_at_[hidden])
Date: 2007-04-24 15:49:18


Hi,

Li-Ta Lo wrote:
> Hi,
>
> My dual Xeon desktop with SMT (1 core, 2 threads) is reported by the
> kernel in a very strange way. The kernel thinks the first physical
> processor as socket 0 but the second physical processor as socket
> 3. There is no socket 1 or 2 either reported by /proc/cpuinfo or
> /sys. This breaks the for loop code counting max sockets in
> load_cache() as it assumes the sockets # are consecutive (and
> allocating memory for non-existence sockets). As a consequence,
> the total number of socket is incorrect neither.
>
> I don't know if we are going to see nonconsecutive processor
> id, core id or thread id reported by kernel in reality.
>
> I attached the /proc/cpuinfo and /sys for your reference.
Hmm, but the /proc/cpuinfo shows for the physical id 0 for first two cpus
and 3 for the last two. I don't know why.

processor : 0
physical id : 0
processor : 1
physical id : 0
processor : 2
physical id : 3
processor : 3
physical id : 3

Jeff, maybe arguments that map to an invalid value, like in this case
socket 1 and 2 for the max_core() function, should return an error, and
not succes and the -1 in the argument pointer. Than this happens exactly here:

Socket 0: 1 core
Socket 1: 0 cores
Socket 2: 0 cores
Socket 3: 1 core

Bert

>
>
> BTW, Jeff, where is the tracker for plpa? the same as OpenMPI?
> Ollie
If you don't know already: https://svn.open-mpi.org/trac/plpa/timeline