Skip to content

Demo should not expect tl.store() return value #39

Description

@CityBoy-Claude

Thanks for making these puzzles, they are super helpful for Triton beginners!

The tl.store demo appears to expect a return value from tl.store(), but the function does not return anything. As a Triton beginner, this was confusing at first. It would be better to remove that part.

@triton_viz.trace("tracer")
@triton.jit
def demo(z_ptr):
    range = tl.arange(0, 8)
    z = tl.store(z_ptr + range, 10, range < 5)
    print(z)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions