Skip to content

Conversation

@starrryz
Copy link
Collaborator

This PR implements the vassert function for the TLE Raw DSL.

Changes:

Implemented vassert in utils.py by targeting the correct __assertfail symbol, enabling native CUDA device-side assertions.

Added a new test case python/tutorials/tle/raw/05-test-assert.py to verify that assertions correctly terminate the kernel and report errors.

sgjzfzzf
sgjzfzzf previously approved these changes Jan 28, 2026
sunnycase
sunnycase previously approved these changes Jan 29, 2026
Copy link
Collaborator

@sunnycase sunnycase left a comment

Choose a reason for hiding this comment

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

LGTM

@starrryz starrryz dismissed stale reviews from sunnycase and sgjzfzzf via 78043dc January 29, 2026 07:07
Copy link
Collaborator

@sgjzfzzf sgjzfzzf left a comment

Choose a reason for hiding this comment

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

Nice done! Btw could u please apply the newly added operation to topk.py to check the bdimx to be 1024 during runtime? That would be very helpful.

Copy link
Collaborator

@zhzhcookie zhzhcookie left a comment

Choose a reason for hiding this comment

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

LGTM

@zhzhcookie zhzhcookie changed the title feat(tle): implement vassert and add unit test [TLE-Raw] implement vassert and add unit test Feb 2, 2026
@starrryz starrryz merged commit 265f8f7 into triton_v3.5.x Feb 3, 2026
3 checks passed
@starrryz starrryz deleted the triton_v3.5.x_assertop branch February 3, 2026 09:05
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.

6 participants