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] Add overflow detection on vulkan when debug=True #6279

Merged
merged 13 commits into from
Oct 13, 2022

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented Oct 10, 2022

Issue: #5932

Brief Summary

Added overflow detection of addition, subtraction, multiplication and shift left operators on Vulkan.

Known bug: 64-bit multiplication overflow detection works on NVIDIA driver 510 with Vulkan version 1.3.194 but does not work on NVIDIA driver 470 with Vulkan version 1.2.175. See #6303

TODO: Support for OpenGL should be automatically available when the print support of OpenGL is available. Add OpenGL to the test at that time.

@netlify
Copy link

netlify bot commented Oct 10, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 94908c1
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63478234a620a400081d99d0
😎 Deploy Preview https://deploy-preview-6279--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.

Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

Nice!
OOC: in the future is it possible to lift these to CHI IR level to save us from implementing it per backend? ;)

@lin-hitonami
Copy link
Contributor Author

Nice! OOC: in the future is it possible to lift these to CHI IR level to save us from implementing it per backend? ;)

It's possible but I'm afraid we can't use the backend-specific instructions if we lift these to CHI IR level...

@lin-hitonami
Copy link
Contributor Author

Don't merge yet. I've spotted a bug on smul

@lin-hitonami lin-hitonami merged commit b8fffd6 into taichi-dev:master Oct 13, 2022
@lin-hitonami lin-hitonami deleted the vulkan_overflow branch October 13, 2022 05:28
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.

2 participants