-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding compile_function
as execute option.
#536
Conversation
This allows users to use jit or aot compilation during the dag finalization process within executors. It should work straightforwardly on jax/numba style jit compilation. It's possible, but maybe ugly, to perform jax-aot-style compilation.
I think this PR is ready to merge. The next things to explore in this area are:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good - thanks for submitting it @alxmrs! Submitting the JAX work in smaller chunks is a good idea.
I made a couple of suggestions for changes, and it also looks like mypy is complaining.
(I'm interested in examples where compilation gives a performance increase - but that's not a blocker to merging this.)
- remove todo for new test - use pytest conventions
Simplifying type to make mypy happy.
Thanks @alxmrs! |
* Adding `compile_function` as execute option. This allows users to use jit or aot compilation during the dag finalization process within executors. It should work straightforwardly on jax/numba style jit compilation. It's possible, but maybe ugly, to perform jax-aot-style compilation. * Add numba for compilation tests. * Singlequotes not needed. * Update function doc. * Added another compile test for failure case. * Added another test to ensure config was applied. * Improve tests - remove todo for new test - use pytest conventions * I don’t think numba jit works well on jax arrays. * Update plan.py Simplifying type to make mypy happy.
This allows users to use jit or aot compilation during the dag finalization process within executors. It should work straightforwardly on jax/numba style jit compilation. It's possible, but maybe ugly, to perform jax-aot-style compilation.
This should help make progress towards #304.
(Note to reviewer: I realized this could be merged ahead of #508, so I pulled it out into a non-dependent PR).