You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We now have Dagger.all_processors() and Dagger.compatible_processors(scope::Dagger.AbstractScope) for getting the set of processors, and so we could implement a Dagger.num_processors() that does what you ask. I would avoid overloading nprocs, since Distributed exports that as well (and we use it in Dagger internally).
I saw that
shard
is able to compute the number of processors, optionally also including threads.Dagger.jl/src/chunks.jl
Lines 176 to 198 in cec17a1
It would be great if this could be available via an API like
Dagger.nprocs
The text was updated successfully, but these errors were encountered: