From b58b19a618df8cb5240df5ca9536dc5f8795b3a8 Mon Sep 17 00:00:00 2001 From: Michael Aziz Date: Mon, 12 Jun 2023 13:16:50 -0700 Subject: [PATCH] [SYCL] Remove invalid `copy` test case KhronosGroup/SYCL-Docs#425 clarifies that the source type for the `copy` must be device copyable. Remove the copy from `const void *` test case since it fails this assertion. Signed-off-by: Michael Aziz --- sycl/test-e2e/Basic/handler/handler_mem_op.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/sycl/test-e2e/Basic/handler/handler_mem_op.cpp b/sycl/test-e2e/Basic/handler/handler_mem_op.cpp index 5d24f0d420dae..c3c8fd625e760 100644 --- a/sycl/test-e2e/Basic/handler/handler_mem_op.cpp +++ b/sycl/test-e2e/Basic/handler/handler_mem_op.cpp @@ -255,20 +255,6 @@ template void test_copy_ptr_acc() { assert(Data[I] == Values[I]); } - // Check copy from 'const void *' memory to accessor. - { - buffer Buffer(Size); - queue Queue; - Queue.submit([&](handler &Cgh) { - auto Acc = Buffer.template get_access(Cgh); - Cgh.copy(reinterpret_cast(Values), Acc); - }); - - auto Acc = Buffer.template get_access(); - for (int I = 0; I < Size; ++I) - assert(Acc[I] == Values[I]); - } - // Check copy from memory to 0-dimensional accessor. T SrcValue = 99; T DstValue = 0;