carstenbauer / ThreadPinning.jl

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

API for setting thread affinity ("loosely pinning threads") #71

Closed carstenbauer closed 1 year ago

carstenbauer commented 1 year ago

(cc @vchuravy)

Screenshot 2023-07-04 at 21 20 15

Would probably be nice to also have a function setaffinities that sets the affinity of all threads, e.g., in an alternating fashion (similar to pinthreads). But I'll leave that for a different PR.

Close #67

carstenbauer commented 1 year ago

NUMA domain example:

Screenshot 2023-07-04 at 21 37 46