diff --git a/tests/extension/khr_free_function_commands/free_function_commands.cpp b/tests/extension/khr_free_function_commands/free_function_commands.cpp index ec655d82d..2c68d98e2 100644 --- a/tests/extension/khr_free_function_commands/free_function_commands.cpp +++ b/tests/extension/khr_free_function_commands/free_function_commands.cpp @@ -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; } } @@ -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; } } @@ -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); @@ -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}; @@ -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}; @@ -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); } };