-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for interactive threads #56
Comments
Absolutely! Since these "interactive threads" aren't particularly special with respect to affinity, you can already pin them right now: ( julia> using ThreadPinning
julia> [getcpuid(i) for i in 1:Threads.maxthreadid()]
5-element Vector{Int64}:
17
12
14
16
18
julia> for i in 1:Threads.maxthreadid()
pinthread(i, i)
end
julia> [getcpuid(i) for i in 1:Threads.maxthreadid()]
5-element Vector{Int64}:
1
2
3
4
5 It'd still be nice to have "proper" support for the new threadpool feature in ThreadPinning.jl (in particular in If you're willing to, please open a PR! I'd be happy to help with comments and pointers. |
Funny you get 5 threads here. Any thoughts on this question on Slack? |
Note that I use |
@simsurace I've improved the thread pool support in ThreadPinning.jl a lot on the |
I'll probably try this again quite soon, when JuliaLang/julia#48702 has been released. |
Julia 1.9 will introduce an interactive thread pools. Maybe the interactive threads can be pinned to specific cores/cpu threads as well?
The text was updated successfully, but these errors were encountered: