Skip to content

Conversation

jchlanda
Copy link
Contributor

Until cxx standard library for NVPTX extension is implemented _wassert is provided
by libclc, that passes it to a call to __assertfail.

Fixes #5922

Until cxx standard library for NVPTX extension is implemented `_wassert` is provided
by libclc, that passes it to a call to `__assertfail`.
@jchlanda jchlanda force-pushed the jakub/wassert_dll_import_2 branch from af3f2a3 to da5ae63 Compare May 31, 2022 08:04
@jchlanda jchlanda requested a review from smanna12 May 31, 2022 15:22
// 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.
Copy link
Contributor

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

@aelovikov-intel
Copy link
Contributor

+1 for removing FE tests. I'd rather let it go without tests than with tests in unrelated place.

Copy link
Contributor

@premanandrao premanandrao left a 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.

@pvchupin pvchupin merged commit f29b498 into intel:sycl Jun 1, 2022
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.

[CUDA] Multiple cts/sub_group_mask_* tests crashed on build with error: SYCL kernel cannot call a dllimport
6 participants