Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,20 @@ struct urUSMContextMemcpyExpTestDevice : urUSMContextMemcpyExpTest {
UUR_INSTANTIATE_DEVICE_TEST_SUITE_MULTI_QUEUE(urUSMContextMemcpyExpTestDevice);

TEST_P(urUSMContextMemcpyExpTestDevice, Success) {
// Testing without xfail to reproduce sporadic failure
// Run multiple iterations to increase chance of catching race condition
// https://github.com/intel/llvm/issues/19688
UUR_KNOWN_FAILURE_ON(uur::CUDA{});
ASSERT_SUCCESS(
urUSMContextMemcpyExp(context, dst_ptr, src_ptr, allocation_size));
verifyData();
constexpr int NumIterations = 20;
for (int i = 0; i < NumIterations; ++i) {
ASSERT_SUCCESS(
urUSMContextMemcpyExp(context, dst_ptr, src_ptr, allocation_size));
verifyData();

// Re-initialize for next iteration
if (i < NumIterations - 1) {
initAllocations();
}
}
}

// Arbitrarily do the negative tests with device allocations. These are mostly a
Expand Down
Loading