Skip to content

Commit 4a02fd7

Browse files
steffenlarsenbb-sycl
authored andcommitted
[SYCL] Ignore backend warning in discard event test (intel#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]>
1 parent c66c00b commit 4a02fd7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

SYCL/DiscardEvents/discard_events_usm_ooo_queue.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
// The test checks that the last parameter is not `nullptr` for all PI calls
1313
// that should discard events.
1414
// {{0|0000000000000000}} is required for various output on Linux and Windows.
15+
// NOTE: piextUSMEnqueuePrefetch in the CUDA backend may return a warning
16+
// result on Windows with error-code -996
17+
// (PI_ERROR_PLUGIN_SPECIFIC_ERROR). Since it is a warning it is safe to
18+
// ignore for this test.
1519
//
1620
// Everything that follows TestQueueOperations()
1721
// CHECK: ---> piextUSMEnqueueMemset(
@@ -39,7 +43,7 @@
3943
// CHECK: ---> piextUSMEnqueuePrefetch(
4044
// CHECK: pi_event * :
4145
// CHECK-NOT: pi_event * : {{0|0000000000000000}}[ nullptr ]
42-
// CHECK: ---> pi_result : PI_SUCCESS
46+
// CHECK: ---> pi_result : {{PI_SUCCESS|-996}}
4347
//
4448
// CHECK: ---> piextUSMEnqueueMemAdvise(
4549
// CHECK-NOT: pi_event * : {{0|0000000000000000}}[ nullptr ]
@@ -96,7 +100,7 @@
96100
// CHECK: ---> piextUSMEnqueuePrefetch(
97101
// CHECK: pi_event * :
98102
// CHECK-NOT: pi_event * : {{0|0000000000000000}}[ nullptr ]
99-
// CHECK: ---> pi_result : PI_SUCCESS
103+
// CHECK: ---> pi_result : {{PI_SUCCESS|-996}}
100104
//
101105
// CHECK: ---> piextUSMEnqueueMemAdvise(
102106
// CHECK-NOT: pi_event * : {{0|0000000000000000}}[ nullptr ]

0 commit comments

Comments
 (0)