Page 1 of 1

CULA & CPU threads

PostPosted: Tue Aug 24, 2010 6:13 am
by ink
Hi there
It turns out that CULA forks out as many CPU threads as there are CPU cores available on the system. Although it's generally a good idea to use all available resources how does it know that the cores are not used by something else?
Oddly, this 'feature' goes unmentioned in the manual. The only thing I was able to find there is that "CULA uses the IntelĀ® Math Kernel Library (MKL) internally."
The usual threading controls (OMP_NUM_THREADS, MKL_NUM_THREADS, and MKL_DOMAIN_NUM_THREADS) don't seem to work.
Is there a way to limit or control the number of threads?


Re: CULA & CPU threads

PostPosted: Wed Sep 01, 2010 6:38 am
by john
Hi ink,
We are considering adding an interface function to CULA to control its number of software threads, based on your input. Can you provide a motivating code sample that shows degraded performance due to the CULA threading? These threads spend quite a bit of time idle and are not hard-bound to a given CPU core and so we wouldn't expect them to have a significant negative impact on overall program performance. A piece of sample code would help us understand the need for this; it can be provided by PM if you would prefer.


Re: CULA & CPU threads

PostPosted: Sat Jun 28, 2014 1:14 am
by hidra2000
I've encountered the same problem myself, has there been any update on this issue?

Is there a way in R18 to limit the cpu threads per operation?