Skip to content

Commit

Permalink
[SYCL] Remove invalid copy test case
Browse files Browse the repository at this point in the history
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 <michael.aziz@intel.com>
  • Loading branch information
0x12CC committed Jun 12, 2023
1 parent 2910add commit b58b19a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions sycl/test-e2e/Basic/handler/handler_mem_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,20 +255,6 @@ template <typename T> void test_copy_ptr_acc() {
assert(Data[I] == Values[I]);
}

// Check copy from 'const void *' memory to accessor.
{
buffer<T, 1> Buffer(Size);
queue Queue;
Queue.submit([&](handler &Cgh) {
auto Acc = Buffer.template get_access<access::mode::discard_write>(Cgh);
Cgh.copy(reinterpret_cast<const void *>(Values), Acc);
});

auto Acc = Buffer.template get_access<access::mode::read>();
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;
Expand Down

0 comments on commit b58b19a

Please sign in to comment.