Skip to content

Commit 7fdaed2

Browse files
author
Georgi Mirazchiyski
committed
Add conformance test for urEnqueueUSMAdvise for non-coherent memory
Test improvement
1 parent a864fb2 commit 7fdaed2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/conformance/enqueue/urEnqueueUSMAdvise.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,12 @@ TEST_P(urEnqueueUSMAdviseTest, InvalidSizeTooLarge) {
6868
urEnqueueUSMAdvise(queue, ptr, allocation_size * 2,
6969
UR_USM_ADVICE_FLAG_DEFAULT, nullptr));
7070
}
71+
72+
TEST_P(urEnqueueUSMAdviseTest, NonCoherentDeviceMemorySuccessOrWarning) {
73+
ASSERT_EQ_RESULT(static_cast<ur_result_t>(
74+
static_cast<int>(UR_RESULT_SUCCESS) |
75+
static_cast<int>(UR_RESULT_ERROR_ADAPTER_SPECIFIC)),
76+
urEnqueueUSMAdvise(
77+
queue, ptr, allocation_size,
78+
UR_USM_ADVICE_FLAG_SET_NON_COHERENT_MEMORY, nullptr));
79+
}

0 commit comments

Comments
 (0)