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

[Take 2] Generalize global jit cpp cache keys so we can add more keys than the current donate_argnums. #17164

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

copybara-service[bot]
Copy link

[Take 2] Generalize global jit cpp cache keys so we can add more keys than the current donate_argnums.

This allows us to get more cache hits globally. For example:

Before:

jax.jit(f, out_shardings=s)(arr)
jax.jit(f, out_shardings=s)(arr) # cpp cache miss
After:

jax.jit(f, out_shardings=s)(arr)
jax.jit(f, out_shardings=s)(arr) # cpp cache hit

Reverts d8f4200

@copybara-service copybara-service bot force-pushed the test_674367894 branch 6 times, most recently from 52e0c5e to 8c96e61 Compare September 17, 2024 22:20
… than the current donate_argnums.

This allows us to get more cache hits globally. For example:

Before:

jax.jit(f, out_shardings=s)(arr)
jax.jit(f, out_shardings=s)(arr)  # cpp cache miss
After:

jax.jit(f, out_shardings=s)(arr)
jax.jit(f, out_shardings=s)(arr)  # cpp cache hit

Reverts d8f4200

PiperOrigin-RevId: 675746175
@copybara-service copybara-service bot merged commit 3406c60 into main Sep 17, 2024
@copybara-service copybara-service bot deleted the test_674367894 branch September 17, 2024 23:15
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.

1 participant