Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Ignore backend warning in discard event test #1050

Merged

Conversation

steffenlarsen
Copy link

The CUDA backend may return a warning in memory prefetch with certain options. Since that does not affect the discard event test we should not fail when that happens. These changes allow the warning in the expected output.

The CUDA backend may return a warning in memory prefetch with certain
options. Since that does not affect the discard event test we should not
fail when that happens. These changes allow the warning in the expected
output.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner June 9, 2022 13:47
@@ -12,6 +12,10 @@
// The test checks that the last parameter is not `nullptr` for all PI calls
// that should discard events.
// {{0|0000000000000000}} is required for various output on Linux and Windows.
// NOTE: piextUSMEnqueuePrefetch in the CUDA backend may return a warning
// result on Windows with error-code -996
// (PI_ERROR_PLUGIN_SPECIFIC_ERROR). Since it is a warning it is safe to

Choose a reason for hiding this comment

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

Technically, the PI_ERROR_PLUGIN_SPECIFIC_ERROR can mean both error and warning, it is determined by a subsequent call to piPluginGetLastError. But I think it is OK for this test not to bother about it.

@steffenlarsen steffenlarsen merged commit 50d115d into intel:intel Jun 27, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
The CUDA backend may return a warning in memory prefetch with certain
options. Since that does not affect the discard event test we should not
fail when that happens. These changes allow the warning in the expected
output.

Signed-off-by: Larsen, Steffen <[email protected]>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…suite#1050)

The CUDA backend may return a warning in memory prefetch with certain
options. Since that does not affect the discard event test we should not
fail when that happens. These changes allow the warning in the expected
output.

Signed-off-by: Larsen, Steffen <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants