Skip to content

Commit dc48d7c

Browse files
authored
[SYCL] Remove invalid copy test case (#9829)
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 <[email protected]>
1 parent 2910add commit dc48d7c

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

sycl/test-e2e/Basic/handler/handler_mem_op.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -255,20 +255,6 @@ template <typename T> void test_copy_ptr_acc() {
255255
assert(Data[I] == Values[I]);
256256
}
257257

258-
// Check copy from 'const void *' memory to accessor.
259-
{
260-
buffer<T, 1> Buffer(Size);
261-
queue Queue;
262-
Queue.submit([&](handler &Cgh) {
263-
auto Acc = Buffer.template get_access<access::mode::discard_write>(Cgh);
264-
Cgh.copy(reinterpret_cast<const void *>(Values), Acc);
265-
});
266-
267-
auto Acc = Buffer.template get_access<access::mode::read>();
268-
for (int I = 0; I < Size; ++I)
269-
assert(Acc[I] == Values[I]);
270-
}
271-
272258
// Check copy from memory to 0-dimensional accessor.
273259
T SrcValue = 99;
274260
T DstValue = 0;

0 commit comments

Comments
 (0)