Skip to content

Commit

Permalink
Improved extern selection in Pallas GPU
Browse files Browse the repository at this point in the history
Previously,

* weakly typed avals matched the wrong externs;
* this was addressed by #23193, which disallowed weakly typed avals entirely.

Here we check if a weakly typed aval can be casted to the extern input dtype
when selecting an extern.

PiperOrigin-RevId: 669067725
  • Loading branch information
superbobry authored and jax authors committed Aug 30, 2024
1 parent 4c218fb commit 2c11277
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 156 deletions.
1 change: 1 addition & 0 deletions jax/_src/pallas/triton/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ pytype_strict_library(
"//jax:api_util",
"//jax:config",
"//jax:core",
"//jax:dtypes",
"//jax:mlir",
"//jax:partial_eval",
"//jax:source_info_util",
Expand Down
Loading

0 comments on commit 2c11277

Please sign in to comment.