carstenbauer / ThreadPinning.jl

Readily pin Julia threads to CPU-threads
https://carstenbauer.github.io/ThreadPinning.jl/
MIT License
106 stars 7 forks source link

pinthreads(:affinitymask) fails with hyperthreads #93

Closed KrisJensen closed 2 months ago

KrisJensen commented 7 months ago

pinthreads(:affinitymask) fails with error message "More Julia threads than CPU-threads specified by affinity mask" when I have enough threads+hyperthreads but not enough physical cores.

carstenbauer commented 6 months ago

I thought about this once more and it isn't clear to me why it's failing. Could you tell me what ThreadPinning.initial_affinity_mask() and threadinfo() gives on your system / in your SLURM allocation?

carstenbauer commented 2 months ago

Closing for now. (Feel free to provide more information.)