Skip to content
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

Enable async dispatch on JAX CPU by setting 'jax_cpu_enable_async_dispatch' to be True by default. #20939

Closed
wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

Enable async dispatch on JAX CPU by setting 'jax_cpu_enable_async_dispatch' to be True by default.

To prevent too much parallelism for non-parallel computations, we add a enqueue event to make sure next computation won't be enqueued until last one is done.

In ~PyArray_Storage(), we now release the python GIL then destroy the underlying buffer to prevent deadlock caused by interactions between argument donations and host callbacks on CPU backend.

…patch' to be `True` by default.

To prevent too much parallelism for non-parallel computations, we add a enqueue event to make sure next computation won't be enqueued until last one is done.

In `~PyArray_Storage()`, we now release the python GIL then destroy the underlying buffer to prevent deadlock caused by interactions between argument donations and host callbacks on CPU backend.

PiperOrigin-RevId: 625505131
@copybara-service copybara-service bot closed this May 8, 2024
@copybara-service copybara-service bot deleted the test_625505131 branch May 8, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant