Skip to content

Annotate unused TBE vector parameters - #6359

Closed
q10 wants to merge 1 commit into
pytorch:mainfrom
q10:export-D121257626
Closed

q10 wants to merge 1 commit into
pytorch:mainfrom
q10:export-D121257626

Conversation

@q10

@q10 q10 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Summary:
Mark contract-required parameters unused in TBE vector and stochastic-rounding helpers.

The affected overloads are unsupported-operation stubs or CUDA/ROCm-specific helpers whose uniform signatures intentionally retain parameters that some configurations do not read. Use unnamed parameters (/* param */) where values are never read, and retain [[maybe_unused]] for the shuffle mask that is used by CUDA but not ROCm. Make unsupported Vec4AccT assertions carry an actionable message without changing supported behavior.

Differential Revision: D121257626

Summary:
Mark contract-required parameters unused in TBE vector and stochastic-rounding helpers.

The affected overloads are unsupported-operation stubs or CUDA/ROCm-specific helpers whose uniform signatures intentionally retain parameters that some configurations do not read. Use unnamed parameters (`/* param */`) where values are never read, and retain `[[maybe_unused]]` for the shuffle mask that is used by CUDA but not ROCm. Make unsupported `Vec4AccT` assertions carry an actionable message without changing supported behavior.

Differential Revision: D121257626
@meta-cla meta-cla Bot added the cla signed label Sep 22, 2026
@meta-codesync

meta-codesync Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@q10 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D121257626.

@meta-codesync

meta-codesync Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in 65d0de9.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant