-
Notifications
You must be signed in to change notification settings - Fork 608
[ET-VK][mac] Allow vulkan binaries to work with Vulkan SDK + fixes to enable debugPrintf extension #7957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… enable debugPrintf extension ## Context Add a buck config option to prevent linking against MoltenVK when building for MacOS, instead opting to use volk. This is useful for seeing debug print statments from GLSL code. Also implement some fixes to make things work when using system-installed Vulkan SDK, and some fixes to enable using debug Printf extension on Mac. Specifically, the fixes are as follows: * On newer versions of the Vulkan SDK, a portability instance extension needs to be explicitly enabled, otherwise creating the Vulkan instance will complain about the driver being incompatible. [source](https://stackoverflow.com/questions/58732459/vk-error-incompatible-driver-with-mac-os-and-vulkan-moltenvk) * VkConfig on Mac doesn't show options to enable debugprintf, therefore it has to be enabled programmatically. Differential Revision: [D68650936](https://our.internmc.facebook.com/intern/diff/D68650936/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7957
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 97bc865 with merge base 1f1a96f ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D68650936 |
… enable debugPrintf extension ## Context Add a buck config option to prevent linking against MoltenVK when building for MacOS, instead opting to use volk. This is useful for seeing debug print statments from GLSL code. Also implement some fixes to make things work when using system-installed Vulkan SDK, and some fixes to enable using debug Printf extension on Mac. Specifically, the fixes are as follows: * On newer versions of the Vulkan SDK, a portability instance extension needs to be explicitly enabled, otherwise creating the Vulkan instance will complain about the driver being incompatible. [source](https://stackoverflow.com/questions/58732459/vk-error-incompatible-driver-with-mac-os-and-vulkan-moltenvk) * VkConfig on Mac doesn't show options to enable debugprintf, therefore it has to be enabled programmatically. Differential Revision: [D68650936](https://our.internmc.facebook.com/intern/diff/D68650936/) ghstack-source-id: 263006772 Pull Request resolved: #7957
This PR needs a
|
e6db67c
into
gh/SS-JIA/173/base
… enable debugPrintf extension ## Context Add a buck config option to prevent linking against MoltenVK when building for MacOS, instead opting to use volk. This is useful for seeing debug print statments from GLSL code. Also implement some fixes to make things work when using system-installed Vulkan SDK, and some fixes to enable using debug Printf extension on Mac. Specifically, the fixes are as follows: * On newer versions of the Vulkan SDK, a portability instance extension needs to be explicitly enabled, otherwise creating the Vulkan instance will complain about the driver being incompatible. [source](https://stackoverflow.com/questions/58732459/vk-error-incompatible-driver-with-mac-os-and-vulkan-moltenvk) * VkConfig on Mac doesn't show options to enable debugprintf, therefore it has to be enabled programmatically. Differential Revision: [D68650936](https://our.internmc.facebook.com/intern/diff/D68650936/) ghstack-source-id: 263006772 Pull Request resolved: #7957 Co-authored-by: Stephen Jia <[email protected]>
… enable debugPrintf extension ## Context Add a buck config option to prevent linking against MoltenVK when building for MacOS, instead opting to use volk. This is useful for seeing debug print statments from GLSL code. Also implement some fixes to make things work when using system-installed Vulkan SDK, and some fixes to enable using debug Printf extension on Mac. Specifically, the fixes are as follows: * On newer versions of the Vulkan SDK, a portability instance extension needs to be explicitly enabled, otherwise creating the Vulkan instance will complain about the driver being incompatible. [source](https://stackoverflow.com/questions/58732459/vk-error-incompatible-driver-with-mac-os-and-vulkan-moltenvk) * VkConfig on Mac doesn't show options to enable debugprintf, therefore it has to be enabled programmatically. Differential Revision: [D68650936](https://our.internmc.facebook.com/intern/diff/D68650936/) ghstack-source-id: 263006772 Pull Request resolved: #7957 Co-authored-by: Stephen Jia <[email protected]>
… enable debugPrintf extension ## Context Add a buck config option to prevent linking against MoltenVK when building for MacOS, instead opting to use volk. This is useful for seeing debug print statments from GLSL code. Also implement some fixes to make things work when using system-installed Vulkan SDK, and some fixes to enable using debug Printf extension on Mac. Specifically, the fixes are as follows: * On newer versions of the Vulkan SDK, a portability instance extension needs to be explicitly enabled, otherwise creating the Vulkan instance will complain about the driver being incompatible. [source](https://stackoverflow.com/questions/58732459/vk-error-incompatible-driver-with-mac-os-and-vulkan-moltenvk) * VkConfig on Mac doesn't show options to enable debugprintf, therefore it has to be enabled programmatically. Differential Revision: [D68650936](https://our.internmc.facebook.com/intern/diff/D68650936/) ghstack-source-id: 263006772 Pull Request resolved: pytorch#7957 Co-authored-by: Stephen Jia <[email protected]>
Stack from ghstack (oldest at bottom):
Context
Add a buck config option to prevent linking against MoltenVK when building for MacOS, instead opting to use volk. This is useful for seeing debug print statments from GLSL code.
Also implement some fixes to make things work when using system-installed Vulkan SDK, and some fixes to enable using debug Printf extension on Mac.
Specifically, the fixes are as follows:
Differential Revision: D68650936
cc @manuelcandales