Skip to content

[ET-VK][conv2d] Rename Conv2dTapRange::None to avoid X11 macro clash - #25739

Open
SS-JIA wants to merge 2 commits into
gh/SS-JIA/753/basefrom
gh/SS-JIA/753/head
Open

SS-JIA wants to merge 2 commits into
gh/SS-JIA/753/basefrom
gh/SS-JIA/753/head

Conversation

@SS-JIA

@SS-JIA SS-JIA commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Rationale

What: Rename the Conv2dTapRange::None enumerator to Conv2dTapRange::Disabled.

Why: X11's X.h defines None as a macro. Linux builds of vulkan_graph_runtime_no_volk and vulkan_graph_runtime_no_volk_static include it before Conv2dTapRange.h, so the enumerator fails to compile:

Conv2dTapRange.h:40:3: error: expected identifier
X11/X.h:115:30: note: expanded from macro 'None'

Fixes T300405658.

Differential Revision: D134552491

[ghstack-poisoned]
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 25, 2026
@pytorch-bot

pytorch-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25739

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 7d66fd8 with merge base 74fbf44 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

[ghstack-poisoned]
SS-JIA added a commit that referenced this pull request Nov 25, 2026
Pull Request resolved: #25739

## Rationale

**What**: Rename the `Conv2dTapRange::None` enumerator to `Conv2dTapRange::Disabled`.

**Why**: X11's `X.h` defines `None` as a macro. Linux builds of `vulkan_graph_runtime_no_volk` and `vulkan_graph_runtime_no_volk_static` include it before `Conv2dTapRange.h`, so the enumerator fails to compile:

```
Conv2dTapRange.h:40:3: error: expected identifier
X11/X.h:115:30: note: expanded from macro 'None'
```

Fixes T300405658.
ghstack-source-id: 483752263
@exported-using-ghexport

Differential Revision: [D134552491](https://our.internmc.facebook.com/intern/diff/D134552491/)

This branch was previously deployed

1 inactive deployment
cadence — 7d66fd88 Deployed Nov 25, 2026 by SS-JIA via hifi-op-test / hifi4 #41050
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants