-
Notifications
You must be signed in to change notification settings - Fork 807
[SYCL] Add support for assert in windows NVPTX #6215
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
Until cxx standard library for NVPTX extension is implemented `_wassert` is provided by libclc, that passes it to a call to `__assertfail`.
af3f2a3
to
da5ae63
Compare
// expect to see any warnings or compilation errors. On Windows targeting NVPTX | ||
// the implementation of assert is provided by libclc. | ||
// | ||
// Please note, that the execution of the assert is tested in llvm-test-suite. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this functionality is being tested in the test suite and we no longer have FE changes, I don't think we need FE tests. Can you explain why you added this test? I'm not sure if I am missing something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @elizabethandrews. If #6188 is not needed, then our (my) request for FE tests is no longer relevant. Is that what prompted you to add FE tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap, it was.
I'll remove the test. One thing to note is that the test suite will require a bit of work to support asserts on windows/hip.
+1 for removing FE tests. I'd rather let it go without tests than with tests in unrelated place. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no FE-related changes here, so nothing to really approve at my end. But the change looks okay to me.
Until cxx standard library for NVPTX extension is implemented
_wassert
is providedby libclc, that passes it to a call to
__assertfail
.Fixes #5922