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

Adding tl.const annotation to mark and validate that const tensors are not being stored to #3360

Merged
merged 11 commits into from
Mar 14, 2024

Conversation

pawelszczerbuk
Copy link
Contributor

@pawelszczerbuk pawelszczerbuk commented Mar 12, 2024

Introducing tl.const argument annotation for marking pointers to constant memory. Tensors in memory accessed through such pointers cannot be modified (you cannot call store with const pointer).

@pawelszczerbuk pawelszczerbuk marked this pull request as ready for review March 13, 2024 17:30
@pawelszczerbuk pawelszczerbuk requested a review from ptillet as a code owner March 13, 2024 17:30
Copy link
Collaborator

@ThomasRaoux ThomasRaoux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks good to me.
It may be worth having a quick discussion about naming to make sure everybody is fine with tl.const. Otherwise I think this is good to go.

@jlebar
Copy link
Collaborator

jlebar commented Mar 13, 2024

tl.const sgtm

@pawelszczerbuk pawelszczerbuk enabled auto-merge (squash) March 14, 2024 22:18
@pawelszczerbuk pawelszczerbuk disabled auto-merge March 14, 2024 22:18
@pawelszczerbuk pawelszczerbuk merged commit d42ca11 into main Mar 14, 2024
4 checks passed
@pawelszczerbuk pawelszczerbuk deleted the pawel/const branch March 14, 2024 22:50
ptillet pushed a commit that referenced this pull request Mar 18, 2024
…e not being stored to (#3360)

Introducing `tl.const` argument annotation for marking pointers to
constant memory. Tensors in memory accessed through such pointers cannot
be modified (you cannot call `store` with const pointer).
ptillet pushed a commit that referenced this pull request Apr 1, 2024
…e not being stored to (#3360)

Introducing `tl.const` argument annotation for marking pointers to
constant memory. Tensors in memory accessed through such pointers cannot
be modified (you cannot call `store` with const pointer).
karupayun pushed a commit to openxla/triton that referenced this pull request Apr 3, 2024
…e not being stored to (triton-lang#3360)

Introducing `tl.const` argument annotation for marking pointers to
constant memory. Tensors in memory accessed through such pointers cannot
be modified (you cannot call `store` with const pointer).
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.

4 participants