Revision 9bdd9302cdd7f8fc499e9111d4a084548f0fff5e authored by Tim Besard on 11 February 2022, 10:10:47 UTC, committed by Tim Besard on 11 February 2022, 10:10:47 UTC
1 parent 2ca8b0c
profile_spawnmany_exec.jl
# This file is a part of Julia. License is MIT: https://julialang.org/license
using Profile
function spawnmany(n)
if n > 2
m = n รท 2
t = Threads.@spawn spawnmany(m)
spawnmany(m)
wait(t)
end
end
@profile spawnmany(parse(Int, get(ENV, "NTASKS", "2000000")))
Computing file changes ...