-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Cannot spawn task on interactive thread after starting Julia 1.9.0-beta4 with -t1,1
#48644
Comments
I did some digging and I believe there is a bug in Lines 71 to 77 in 45b7e7a
Setting the threadpool does not work, but setting the thread id works:
where set_threadpoolid!(task) = ccall(:jl_set_task_threadpoolid, Cint, (Any, Int8), task, Int8(1))
set_threadid!(task) = ccall(:jl_set_task_tid, Cint, (Any, Int16), task, Int16(1))
function test(f)
task = @task Threads.threadpool()
task.sticky = false
f(task)
schedule(task)
return fetch(task)
end This is despite the fact that
|
@jpsamaroo You might be able to help. |
This is a bug introduced by #46609, here. Previously, Looks like |
I do not know how best to fix this, but I would think it is important to
I could contribute the second item, but I'm unfamiliar with this project's CI pipelines. Where are they defined? Where would such a workflow go (e.g. starting Julia with different thread configurations and checking for correct behavior)? |
Thanks for the good report @simsurace. |
My pleasure |
The CLI help for
-t
states:So I would expect to be able to spawn a task on the interactive thread when starting Julia with
-t1,1
(one default and one interactive thread). But this fails on Julia 1.9.0-beta4:It works when starting Julia with
-t2,1
(two default and one interactive thread):I think this is a bug.
The text was updated successfully, but these errors were encountered: