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
However, when/before transmitting results, I'd like to "signal" to Dask that it should do Dask's equivalent of .compute(), before transmitting results to another node.
I was wondering if I could "turn off" parallelism on one node, as there will be parallelism inherent to the algorithm itself.
However, when/before transmitting results, I'd like to "signal" to Dask that it should do Dask's equivalent of .compute(), before transmitting results to another node.
There is nothing in Dask itself, but you might be able to add this to serialization methods like the pickle protocol or Dask's custom serialization methods.
I was wondering if I could "turn off" parallelism on one node, as there will be parallelism inherent to the algorithm itself.
You can have workers that have only a single thread, but there is no way to temporarily claim the entire worker. One could maybe do something fancy with locks and semaphores, but there's nothing like that today and it might take some time to gather enough use cases to make a good design here.
For other situration that already have parallelism (like BLAS) we tend to turn off parallelism in the user's library. It tends to be decently efficient most of the time to just let Dask be the only thing that runs in parallel.
There is nothing in Dask itself, but you might be able to add this to serialization methods like the pickle protocol or Dask's custom serialization methods.
This is a nice idea, and probably close to what I want either way.
For other situration that already have parallelism (like BLAS) we tend to turn off parallelism in the user's library. It tends to be decently efficient most of the time to just let Dask be the only thing that runs in parallel.
I'll have to test both and see the performance difference in each case, but since I'm in the exploratory phase at this moment nothing can be said. 😄
Usually parallelizing within an algorithm is harder than running it many times in parallel. If you're in a situation where you can use Dask to run things manyt imes, it's probably not a bad idea to use Dask. That at least has been the experience so far.
Usually parallelizing within an algorithm is harder than running it many times in parallel. If you're in a situation where you can use Dask to run things manyt imes, it's probably not a bad idea to use Dask. That at least has been the experience so far.
One aspect of this I haven't yet mentioned (and the reason I'm reopening) is: Is there a way to call .compute() on my collection before Dask assembles the results, and not just when shuffling nodes?
On Mon, Feb 10, 2020 at 3:10 AM Hameer Abbasi ***@***.***> wrote:
One aspect of this I haven't yet mentioned (and the reason I'm reopening)
is: Is there a way to call .compute() on my collection before Dask
assembles the results, and not just when shuffling nodes?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5879?email_source=notifications&email_token=AACKZTBPDVUKGTGILYYV7S3RCEY3ZA5CNFSM4KSAEY52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELIDW3I#issuecomment-584072045>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKZTFH23X6B6WIJTFHPRLRCEY3ZANCNFSM4KSAEY5Q>
.
Activity
mrocklin commentedon Feb 9, 2020
There is nothing in Dask itself, but you might be able to add this to serialization methods like the pickle protocol or Dask's custom serialization methods.
You can have workers that have only a single thread, but there is no way to temporarily claim the entire worker. One could maybe do something fancy with locks and semaphores, but there's nothing like that today and it might take some time to gather enough use cases to make a good design here.
mrocklin commentedon Feb 9, 2020
For other situration that already have parallelism (like BLAS) we tend to turn off parallelism in the user's library. It tends to be decently efficient most of the time to just let Dask be the only thing that runs in parallel.
hameerabbasi commentedon Feb 9, 2020
This is a nice idea, and probably close to what I want either way.
I'll have to test both and see the performance difference in each case, but since I'm in the exploratory phase at this moment nothing can be said. 😄
mrocklin commentedon Feb 9, 2020
Usually parallelizing within an algorithm is harder than running it many times in parallel. If you're in a situation where you can use Dask to run things manyt imes, it's probably not a bad idea to use Dask. That at least has been the experience so far.
hameerabbasi commentedon Feb 9, 2020
I'll keep that in mind. 😄
hameerabbasi commentedon Feb 10, 2020
One aspect of this I haven't yet mentioned (and the reason I'm reopening) is: Is there a way to call
.compute()on my collection before Dask assembles the results, and not just when shuffling nodes?mrocklin commentedon Feb 10, 2020