Skip to content

Auto-enable Vulkan in builds, and update docs for Vulkan backend#20525

Open
Reubend wants to merge 5 commits into
pytorch:mainfrom
Reubend:vulkan-compatibility-wheels
Open

Auto-enable Vulkan in builds, and update docs for Vulkan backend#20525
Reubend wants to merge 5 commits into
pytorch:mainfrom
Reubend:vulkan-compatibility-wheels

Conversation

@Reubend

@Reubend Reubend commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Following up from #20138, this enables the Vulkan backend in source builds when its deps are present, mirroring what we do for CUDA, QNN, and OpenVINO.

It also updates the docs for the Vulkan backend to reflect the latest platform support.

fixes:#20140

Changes

  • Added is_vulkan_available(), based on the existing is_cuda_available()
  • Vulkan will be enabled in builds when the above returns true and when the submodules are present (making sure that those aren't uninitialized)
  • Updated the docs to reflect the fact that the Vulkan backend can now run on Linux and Windows

Testing

I tested these changes on a Linux machine with an A100. I'm relying on CI for Windows testing.

cc @SS-JIA @manuelcandales @digantdesai @cbilgin

@pytorch-bot pytorch-bot Bot added the module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ label Jun 26, 2026
@pytorch-bot

pytorch-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure, 2 Unclassified Failures

As of commit 5b76a39 with merge base a03f97b (image):

NEW FAILURE - The following job has failed:

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

@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 Jun 26, 2026
@Reubend Reubend added the release notes: vulkan Changes to the Vulkan backend delegate label Jun 26, 2026
@pytorch pytorch deleted a comment from github-actions Bot Jun 26, 2026
@meta-codesync

meta-codesync Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

@Reubend has imported this pull request. If you are a Meta employee, you can view this in D109868652.

@Reubend Reubend marked this pull request as ready for review June 26, 2026 20:08
@Reubend Reubend requested a review from mergennachin as a code owner June 26, 2026 20:08
@Reubend Reubend requested review from SS-JIA and manuelcandales June 26, 2026 20:12
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. module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ release notes: vulkan Changes to the Vulkan backend delegate

Projects

Status: To triage

Development

Successfully merging this pull request may close these issues.

2 participants