Skip to content

Commit

Permalink
Add conformance test
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeWeb committed Jan 15, 2024
1 parent c53137f commit 908d356
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/conformance/enqueue/urEnqueueUSMAdvise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,9 @@ TEST_P(urEnqueueUSMAdviseTest, InvalidSizeTooLarge) {
urEnqueueUSMAdvise(queue, ptr, allocation_size * 2,
UR_USM_ADVICE_FLAG_DEFAULT, nullptr));
}

TEST_P(urEnqueueUSMAdviseTest, NonCoherentDeviceMemorySuccessOrWarning) {
ASSERT_EQ_RESULT(urEnqueueUSMAdvise(
UR_RESULT_SUCCESS | UR_RESULT_ERROR_ADAPTER_SPECIFIC, queue, ptr,
allocation_size, UR_USM_ADVICE_FLAG_SET_NON_COHERENT_MEMORY, nullptr));
}

0 comments on commit 908d356

Please sign in to comment.