How can I make a program which uses all cores and 100% of cpu power?

Murilo murilomiranda92 at hotmail.com
Fri Dec 6 01:39:49 UTC 2019


On Friday, 11 October 2019 at 06:57:46 UTC, Russel Winder wrote:
> A neural net is, at it's heart, a set of communicating nodes. 
> This is as much
> an I/O bound model as it is compute bound one – nodes are 
> generally waiting
> for input as much as they are computing a value. The obvious 
> solution
> architecture for a small computer is to create a task per node 
> on a thread
> pool, with a few more threads in the pool than you have 
> processors, and hope
> that you can organise the communication between tasks so as to 
> avoid cache
> misses. This can be tricky when using multi-core processors. It 
> gets even
> worse when you have hyperthreads – many organisations doing CPU 
> bound
> computations switch off hyperthreads as they cause more 
> problems than theysolve.

Thanks, that helped a lot. But I already figured out a new 
training algorithm that is a lot faster, no need to use 
parallelism anymore.


More information about the Digitalmars-d-learn mailing list