lkml.org 
[lkml]   [2007]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: getting processor numbers
From
Date
Ulrich Drepper <drepper@redhat.com> writes:

> More and more code depends on knowing the number of processors in the
> system to efficiently scale the code. E.g., in OpenMP it is used by
> default to determine how many threads to create.

There are more uses for it.

> Creating more threads
> than there are processors/cores doesn't make sense.

There was a proposal some time ago to put that into the ELF aux vector
Unfortunately there was disagreement on what information to put
there exactly (full topology, only limited numbers etc.)

My proposal was number of CPUs, number of cores, number of nodes
as three 16 bit numbers.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-04-03 19:15    [W:0.162 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site