num_cpus icon indicating copy to clipboard operation
num_cpus copied to clipboard

Fallback if the counts of num processors via affinity mask is 0

Open kubo39 opened this issue 6 years ago • 4 comments

kubo39 avatar Jun 14 '18 18:06 kubo39

What exactly does it mean if the affinity mask was set to 0? Is the intent to try to say that you can't pick any CPU at all? It'd seem like that would mean 0 cpus (which really is 1 because the code is executing).

seanmonstar avatar Jun 14 '18 20:06 seanmonstar

Ah, sorry, this means 0 cpus.

kubo39 avatar Jun 15 '18 05:06 kubo39

So, if the mask is trying to say "you have 0 cores to use", it seems we should respect that instead of saying "the mask is wrong, you actually have 32 cores!", right?

seanmonstar avatar Jun 18 '18 18:06 seanmonstar

I'm sorry my late reply. My suggestion just brought from Ruby, we should do a deeper discussion.

kubo39 avatar Jun 24 '18 23:06 kubo39