Skip to content

Commit

Permalink
nthreads
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Oct 2, 2023
1 parent 9588904 commit 110a3de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/methods/burning/allocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Allocs(buffer)
return Allocs(buffer, edges, scratch, crossings)
end

function _burning_allocs(x; nthreads=Threads.nthreads(), threaded=true, kw...)
function _burning_allocs(x; nthreads=_nthreads(), threaded=true, kw...)
dims = commondims(x, DEFAULT_POINT_ORDER)
if threaded
[Allocs(_init_bools(dims; metadata=Metadata())) for _ in 1:nthreads]
Expand Down
2 changes: 2 additions & 0 deletions src/methods/burning/array_init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ function _forward_ordered(B)
end
end
end

_nthreads() = Threads.nthreads()

0 comments on commit 110a3de

Please sign in to comment.