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 29, 2024
1 parent 45099b8 commit 16fa34a
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 154 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 16fa34a

Please sign in to comment.