From: Erik S. <esc...@pe...> - 2011-10-30 15:37:23
|
There is "hwloc", distributed on <http://www.open-mpi.org/>. This library determines the number of logical CPUs, as well as their association with various cache levels and NUMA properties. -erik 2011/10/30 Pekka Jääskeläinen <pek...@tu...>: > On 10/25/2011 07:01 PM, Carlos Sánchez de La Lama wrote: >> I just commited rev. 45 with a multithreading device, similar to native >> but creates a thread for each workgroup. > > I committed a modification to the multithreading code on Friday. > > Now it creates a "sensible number" of threads for the multicore > instead of blindly creating as many threads as there are WGs. > > However, parsing the /proc/cpuinfo to produce the number of hardware > threads available in the processor is a bit flaky so (if you run > Linux) please test that it returns a sensible number of threads for > you by enabling the #define DEBUG_MAX_THREAD_COUNT in pthread.c and > compiling+running one of the examples. It should print out the "max > thread count" for your (multi)processor before running the kernel. For > Mac (and Windows) we need to figure out some other way to get the > hardware thread count which defaults to 8 now. > > -- > --Pekka > > > ------------------------------------------------------------------------------ > Get your Android app more play: Bring it to the BlackBerry PlayBook > in minutes. BlackBerry App World™ now supports Android™ Apps > for the BlackBerry® PlayBook™. Discover just how easy and simple > it is! http://p.sf.net/sfu/android-dev2dev > _______________________________________________ > Pocl-devel mailing list > Poc...@li... > https://lists.sourceforge.net/lists/listinfo/pocl-devel > -- Erik Schnetter <esc...@pe...> http://www.cct.lsu.edu/~eschnett/ AIM: eschnett247, Skype: eschnett, Google Talk: sch...@gm... |