Skip to content
Merged
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 @@ -257,7 +257,7 @@ static void test_memcpy() {
q.wait();

for (int i = 0; i < N; ++i) {
CHECK(src[i] == dst[i]);
CHECK(dst[i] == i);
dst[i] = 0;
}
}
Expand All @@ -266,7 +266,7 @@ static void test_memcpy() {
q.wait();

for (int i = 0; i < N; ++i) {
CHECK(src[i] == dst[i]);
CHECK(dst[i] == i);
dst[i] = 0;
}
}
Expand All @@ -286,17 +286,17 @@ static void test_copy_usm_pointers_impl() {
std::iota(src, src + N, 0);

{
q.submit([&](sycl::handler& h) { sycl::khr::copy(h, dst, src, N); });
q.submit([&](sycl::handler& h) { sycl::khr::copy(h, src, dst, N); });
q.wait();
for (int i = 0; i < N; ++i) {
CHECK(src[i] == dst[i]);
CHECK(dst[i] == i);
dst[i] = 0;
}
}
{
sycl::khr::copy(q, dst, src, N);
sycl::khr::copy(q, src, dst, N);
q.wait();
for (int i = 0; i < N; ++i) CHECK(src[i] == dst[i]);
for (int i = 0; i < N; ++i) CHECK(dst[i] == i);
}

sycl::free(src, q);
Expand Down Expand Up @@ -333,7 +333,7 @@ static void test_copy_accessors_host_to_device_impl() {
}
}

for (size_t i = 0; i < N; ++i) CHECK(src[i] == dst[i]);
for (size_t i = 0; i < N; ++i) CHECK(dst[i] == i);
};

T src[N] = {0};
Expand Down Expand Up @@ -378,7 +378,7 @@ static void test_copy_accessors_device_to_host_impl() {
}
}

for (size_t i = 0; i < N; ++i) CHECK(src[i] == dst[i]);
for (size_t i = 0; i < N; ++i) CHECK(dst[i] == i);
};

T dst[N] = {0};
Expand Down Expand Up @@ -427,7 +427,7 @@ static void test_copy_accessors_device_to_device_impl() {
}

for (size_t i = 0; i < N; ++i) {
CHECK(src[i] == dst[i]);
CHECK(dst[i] == i);
}
};

Expand Down