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

Commit 50d115d

Browse files
[SYCL] Ignore backend warning in discard event test (#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 3769374 commit 50d115d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

SYCL/DiscardEvents/discard_events_usm_ooo_queue.cpp

+6-2
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)