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

Add fill TessellateIPU primitive mapping popops vertex. #38

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

balancap
Copy link
Contributor

@balancap balancap commented Sep 28, 2023

Compared to the full LAX operation, the fill_p TessellateIPU primitive
ensures that the full array is allocated and filled with a given value (and not broadcasted).

As an useful example of using fill, in combination with scatter, we implement
tile_sharded_identity which creates an identity matrix, with proper tile mapping, without
introducing additional communications.

@balancap balancap force-pushed the add-fill-tessellate-primitive branch from 0dfe0d5 to d983119 Compare September 29, 2023 10:33
Compared to the `full` LAX operation, the `fill_p` TessellateIPU primitive
ensures that the full array is allocated and filled with a given value (and not broadcasted).

As an useful example of using `fill`, in combination with `scatter`, we implement
`tile_sharded_identity` which creates an identity matrix, with proper tile mapping, without
introducing additional communications.
@balancap balancap force-pushed the add-fill-tessellate-primitive branch from d983119 to 38e7893 Compare September 29, 2023 10:36
@balancap balancap merged commit af0cc1f into main Sep 29, 2023
6 checks passed
@balancap balancap deleted the add-fill-tessellate-primitive branch September 29, 2023 11:17
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