Skip to content
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

[vulkan] Support printing in debug mode on vulkan backend #6075

Merged
merged 3 commits into from
Sep 19, 2022

Conversation

ailzhang
Copy link
Contributor

@ailzhang ailzhang commented Sep 15, 2022

Fixes #2713

This is a long waited debugging utils that we finally get it done. Note since debug printing requires validation layer support, you'll need to have Vulkan SDK installed on your system to use it properly. For example https://vulkan.lunarg.com/doc/sdk/1.3.224.1/linux/getting_started_ubuntu.html.
Also to enable debug printing on vulkan backend you'll need to make sure ti.init(..., debug=True) so that we enable the validation layer properly.

Nit: our test_print.py doesn't really validate the printed message but I've run them with -v -s to verify the outputs visually.

Note: validation layer is not available on molten-vk so vulkan printing on macos won't work.

TODO:

  • support on opengl backend.

@netlify
Copy link

netlify bot commented Sep 15, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 513286d
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63257a7fe7a39a00090230df
😎 Deploy Preview https://deploy-preview-6075--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ailzhang ailzhang force-pushed the spirv_print branch 3 times, most recently from b17befb to f4ee706 Compare September 17, 2022 07:21
Copy link
Member

@PENGUINLIONG PENGUINLIONG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ailzhang ailzhang merged commit 1d70030 into taichi-dev:master Sep 19, 2022
ailzhang added a commit that referenced this pull request Sep 19, 2022
Issue: #6075 (followup)

### Brief Summary
Rename debug_ segment to a more proper name.
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.

[vulkan] Support print() for Vulkan backend
2 participants