Repository navigation
Description
Hi all,
I am a second year PhD student in mechanical engineering at UC Davis studying numeric methods for optimal control. I just learned about dask and I'm excited about using it for the types of problems I do in my research. I think it might already, or be very close to, be a really great way to increase performance for common numeric methods in scientific computing.
In general, it seems that if an implementation of a method that maximizes the number of "sequential" computations between control flow structures and using concurrent futures for control flows (like error checks) would get significant speed boosts since the dask scheduler optimizes and distributes the computational graph. For example, if one were to daskify an algorithm like a Runge-Kutta ODE solver and all the derivative callbacks, the scheduler should automatically perform the equivalent of common sub-expression collection and the parallelization of inter-step computations. Then dask-based higher level logic (such as comparing the results of multiple simulations) or algorithms (like shooting methods for solving boundary value problems) could add the lower-level computation tasks to the scheduler so computation could be processed in parallel without the user having to choose one level to parallelize at.
This leads to some questions:
- Does it seem like I’m understanding how to structure this type of work with dask correctly?
- Would there be interest in daskifying numeric algorithms like Runge-Kutta ODE solvers or “small” optimization methods? And/or implementing inherently distributed and/or asynchronous algorithms (I see several issues related to ADMM for convex optimization)?
- I also see an issue for chunked linear algebra methods; is there any interest in improving performance for dense (small/medium sized) linear algebra for single workers (i.e., calling the best BLAS/LAPACK calls), perhaps through some data modeling? A combination of the chunked and optimized BLAS/LAPACK calls seems very compelling to me, but I havne't looked at this very thoroughly yet.
Thanks,
Ben
Related issues:
#2225
dask/dask-glm#3
dask/dask-glm#5
dask/dask-glm#57
This post is to move dask/dask-glm#68 at @mrocklin's suggestion.
Activity
sixpearls commentedon Mar 3, 2018
Quoting and responding to @mrocklin:
Yes, this is my general idea, with the addition that there may be other, better ways to increase performance such as formulating the ODE solver as an optimization problem and applying a distributed method like ADMM. For my work, the (derivative) functions are simple enough that it would be worth re-writing the functions for even modest speed gains at the ODE solver level if there was the possibility of "stacking" that gain with dask-y outer-level computation.
It sounds like this may be worth pursuing due to my personal interest and the possibility that it could be useful. I am not sure if I have people I can talk to about this type of algorithm, but I will look more at my networks and hope folks see this discussion.
I'm not very familiar with current state-of-the-art for distributed/chunked linear algebra and would love to know what others think and how they would recommend digging into a problem like this
poulson commentedon Mar 3, 2018
I think it's worth emphasizing that answers to distributed-memory performance questions are almost completely dependent upon the hardware you're running on (including the network and occupancy). MPI-style algorithms can be more demanding on global network traffic (as opposed to maximum per-machine traffic) and more fragile to variable performance characteristics (e.g., some machines occasionally having high latency and/or poor bandwidth). I would go so far as to say distributed-memory performance discussions are meaningless without such performance characteristics as context.
My suggestion would be to pick an application and machine that matters to you and work on making said problem fast on said architecture. I would be happy to say more (for what it's worth) if there is a particular algorithm and architecture that you're interested in.
sixpearls commentedon Mar 3, 2018
Thanks, your suggestion makes sense to me. I don't often solve big linear algebra problems, although I am generally interested for optimization methods. I'm also still very new to the dask and don't have quite have a grasp on the scope of the API.
So maybe I should focus on the ODE solvers on my machine(s) since I would actually be using those in my work.
mrocklin commentedon Oct 24, 2018
This conversation seems to have gone stale. Closing.