Closed
Description
I'm encountering a previously documented issue when running @threads loops on the arm64 native 1.8.0-rc1 version of julia. Apparently, this has been a known issue before but marked as closed (link to issue). The bug still seems to exist and is causing troubles for me. I'll quote a minimal example from the thread that initially documented this issue (Originally posted by @gbaraldi in #41820 (comment)):
julia> function foo()
Threads.@threads for i in 1:10
rand()
end
end
foo (generic function with 1 method)
julia> for i in 1:1000
println(i)
for j in 1:10000
foo()
end
end
This freezes for me somewhere in i = 11 on my Mac with the current 1.8.0-rc1 version of julia.
Below I attach the exact output of versioninfo():
julia> versiononfo()
Julia Version 1.8.0-rc1
Commit 6368fdc6565 (2022-05-27 18:33 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.3.0)
CPU: 10 × Apple M1 Pro
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
Threads: 8 on 8 virtual cores