Skip to content

Add test for compute shader semantics#752

Merged
Keenuts merged 7 commits intollvm:mainfrom
Keenuts:compute
Feb 25, 2026
Merged

Add test for compute shader semantics#752
Keenuts merged 7 commits intollvm:mainfrom
Keenuts:compute

Conversation

@Keenuts
Copy link
Contributor

@Keenuts Keenuts commented Feb 18, 2026

Add testing for compute shader system semantics on a 2x2x2 dispatch.

@Keenuts Keenuts requested a review from s-perron February 19, 2026 09:09
@Keenuts Keenuts enabled auto-merge (squash) February 19, 2026 12:56
Copy link
Contributor

@s-perron s-perron left a comment

Choose a reason for hiding this comment

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

it is hard to look at the results and know that they are correct. I need to look at an entry in OUT_DTID and make sure it is at the correct index. I then need to go to OUT_GTID and determine the correct value for the DTID in the first array. Then I need to go to a third.

It would be nice to have all of the related information together with appropriate comments to explain the results.

Copy link
Contributor

@s-perron s-perron left a comment

Choose a reason for hiding this comment

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

I think the substance of the test looks good, but the comments don't seem correct.

@Keenuts
Copy link
Contributor Author

Keenuts commented Feb 24, 2026

There is a single CI failure I'm trying to debug hence the magic numbers in the last commit

@Keenuts Keenuts added the test-all When applied to a PR this will opt-in to additional pre-merge test configurations.. label Feb 25, 2026
@Keenuts Keenuts requested a review from s-perron February 25, 2026 13:48
@Keenuts
Copy link
Contributor Author

Keenuts commented Feb 25, 2026

All test failures are now unrelated. PTAL

Copy link
Contributor

@s-perron s-perron left a comment

Choose a reason for hiding this comment

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

I think the comments could be clearer, but I don't think it is a big deal. LGTM.

# Dispatch: the dispatch coordinates in the 3D grid.
# thread: the thread coordinates in the thread group.
#
# Dispatch x=0 y=0 z=0 | thread x=0 y=0 z=0
Copy link
Contributor

Choose a reason for hiding this comment

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

The dispatch is just the Group id, and the thread is group thread id.

@Keenuts Keenuts merged commit de544a2 into llvm:main Feb 25, 2026
17 of 23 checks passed
@Keenuts Keenuts deleted the compute branch February 25, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-all When applied to a PR this will opt-in to additional pre-merge test configurations..

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants