From: Pekka J. <pek...@tu...> - 2011-10-30 11:34:08
|
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 |