Skip to content

build: disable VK if WARP_ONLY set#742

Merged
Keenuts merged 3 commits intollvm:mainfrom
Keenuts:disable-vk
Feb 26, 2026
Merged

build: disable VK if WARP_ONLY set#742
Keenuts merged 3 commits intollvm:mainfrom
Keenuts:disable-vk

Conversation

@Keenuts
Copy link
Copy Markdown
Contributor

@Keenuts Keenuts commented Feb 16, 2026

Current build logic enables Vulkan if the headers are found, even when WARP_ONLY is set to On. This can happen when the Vulkan SDK is in the path. This causes issues on machine with no Vulkan implementation available as building with Vulkan support enabled will require the vulkan DLL to be present.

Current build logic enables Vulkan if the headers are found, even when
WARP_ONLY is set to On. This can happen when the Vulkan SDK is in the
path. This causes issues on machine with no Vulkan implementation
available as building with Vulkan support enabled will require the
vulkan DLL to be present.
@Keenuts Keenuts requested a review from s-perron February 16, 2026 14:44
Comment thread CMakeLists.txt
Copy link
Copy Markdown
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'm with @farzonl. Can you explain the actual problem? Is there a more general problem that we might have the vulkan include dirs, but no vulkan driver, then the problem has nothing to do with warp. We should fix that problem, which could happen in other situations.

If the problem is that the option "OFFLOADTEST_WARP_ONLY" suggests that we should not build with Vulkan, even if everything works, then I would say leave it on if there is a vulkan driver. The documentation says it "Skips generating d3d test configurations for non-WARP configurations." It does not say it skips Vulkan.

If you want it to skip Vulkan with that option, you should update the documentation for it.

@Keenuts
Copy link
Copy Markdown
Contributor Author

Keenuts commented Feb 18, 2026

I'm with @farzonl. Can you explain the actual problem? Is there a more general problem that we might have the vulkan include dirs, but no vulkan driver, then the problem has nothing to do with warp. We should fix that problem, which could happen in other situations.

If the problem is that the option "OFFLOADTEST_WARP_ONLY" suggests that we should not build with Vulkan, even if everything works, then I would say leave it on if there is a vulkan driver. The documentation says it "Skips generating d3d test configurations for non-WARP configurations." It does not say it skips Vulkan.

If you want it to skip Vulkan with that option, you should update the documentation for it.

#742 (comment)
I explained the problem in the comment thread.

@Keenuts Keenuts requested review from farzonl and s-perron February 19, 2026 09:10
@Keenuts
Copy link
Copy Markdown
Contributor Author

Keenuts commented Feb 23, 2026

@s-perron anything else?

Copy link
Copy Markdown
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.

The "warp only" wording makes it make sense that Vulkan would be excluded, so I'm okay with it with the docs update.

Comment thread docs/WARP.md Outdated
@Keenuts Keenuts merged commit a383bbd into llvm:main Feb 26, 2026
12 checks passed
@Keenuts Keenuts deleted the disable-vk branch February 26, 2026 12:08
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.

4 participants