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

Daniel Kozak kozzi11 at gmail.com
Fri Oct 11 04:58:13 UTC 2019


On Fri, Oct 11, 2019 at 2:45 AM Murilo via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> wrote:
>
> I have started working with neural networks and for that I need a
> lot of computing power but the programs I make only use around
> 30% of the cpu, or at least that is what Task Manager tells me.
> How can I make it use all 4 cores of my AMD FX-4300 and how can I
> make it use 100% of it?

You should use minimally same amount of threads as you have cores. So
in your case 4 or even more.
Than you should buy a new CPU if you really need a lot of computing
power :). Other issue can be using blocking IO, so your threads are in
idle, so can stress your CPU.


More information about the Digitalmars-d-learn mailing list