-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pallas/pallas_mgpu] Discharging run_scoped should not be discharging…
… the intermediates When we do run_scoped[jaxpr, R1,R2], it can't be assumed that references corresponding to R1 and R2 can be safely discharged. Sometimes they can (eg Accumulator) but sometimes they can't (eg SMEM scratch). It should be up to the lowering rule to do such discharging. This further means that during lowering there is no guarantee that the references will not be used/returned by nested scoped blocks so we also remove that check. PiperOrigin-RevId: 703334972
- Loading branch information
1 parent
20efbd9
commit aab18bd
Showing
2 changed files
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters