Skip to content

Commit

Permalink
Add TODO for test issues that predated this PR
Browse files Browse the repository at this point in the history
Signed-off-by: Lu, John <[email protected]>
  • Loading branch information
LU-JOHN committed Sep 17, 2024
1 parent 474cc03 commit 0a98fa1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sycl/test-e2e/DeviceDependencies/free_function_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ bool test_0(queue Queue) {
});
Queue.wait();
bool PassA = checkUSM(usmPtr, Range, Result);
// TODO: Avoid printing anything if test passes to reduce I/O.
std::cout << "Test 0a: " << (PassA ? "PASS" : "FAIL") << std::endl;

bool PassB = false;
// TODO: Avoid using __SYCL_DEVICE_ONLY__ or give rationale with a comment
#ifndef __SYCL_DEVICE_ONLY__
kernel_bundle Bundle =
get_kernel_bundle<bundle_state::executable>(Queue.get_context());
Expand All @@ -88,6 +90,7 @@ bool test_0(queue Queue) {
});
Queue.wait();
PassB = checkUSM(usmPtr, Range, Result);
// TODO: Avoid printing anything if test passes to reduce I/O.
std::cout << "Test 0b: " << (PassB ? "PASS" : "FAIL") << std::endl;

free(usmPtr, Queue);
Expand Down Expand Up @@ -120,9 +123,11 @@ bool test_1(queue Queue) {
});
Queue.wait();
bool PassA = checkUSM(usmPtr, Range, Result);
// TODO: Avoid printing anything if test passes to reduce I/O.
std::cout << "Test 1a: " << (PassA ? "PASS" : "FAIL") << std::endl;

bool PassB = false;
// TODO: Avoid using __SYCL_DEVICE_ONLY__ or give rationale with a comment
#ifndef __SYCL_DEVICE_ONLY__
kernel_bundle Bundle =
get_kernel_bundle<bundle_state::executable>(Queue.get_context());
Expand All @@ -138,6 +143,7 @@ bool test_1(queue Queue) {
});
Queue.wait();
PassB = checkUSM(usmPtr, Range, Result);
// TODO: Avoid printing anything if test passes to reduce I/O.
std::cout << "Test 1b: " << (PassB ? "PASS" : "FAIL") << std::endl;

free(usmPtr, Queue);
Expand Down Expand Up @@ -175,9 +181,11 @@ bool test_2(queue Queue) {
});
Queue.wait();
bool PassA = checkUSM(usmPtr, Range, Result);
// TODO: Avoid printing anything if test passes to reduce I/O.
std::cout << "Test 2a: " << (PassA ? "PASS" : "FAIL") << std::endl;

bool PassB = false;
// TODO: Avoid using __SYCL_DEVICE_ONLY__ or give rationale with a comment
#ifndef __SYCL_DEVICE_ONLY__
kernel_bundle Bundle =
get_kernel_bundle<bundle_state::executable>(Queue.get_context());
Expand All @@ -192,6 +200,7 @@ bool test_2(queue Queue) {
});
Queue.wait();
PassB = checkUSM(usmPtr, Range, Result);
// TODO: Avoid printing anything if test passes to reduce I/O.
std::cout << "Test 2b: " << (PassB ? "PASS" : "FAIL") << std::endl;

free(usmPtr, Queue);
Expand Down Expand Up @@ -233,9 +242,11 @@ bool test_3(queue Queue) {
});
Queue.wait();
bool PassA = checkUSM(usmPtr, Range, Result);
// TODO: Avoid printing anything if test passes to reduce I/O.
std::cout << "Test 3a: " << (PassA ? "PASS" : "FAIL") << std::endl;

bool PassB = false;
// TODO: Avoid using __SYCL_DEVICE_ONLY__ or give rationale with a comment
#ifndef __SYCL_DEVICE_ONLY__
kernel_bundle Bundle =
get_kernel_bundle<bundle_state::executable>(Queue.get_context());
Expand All @@ -250,6 +261,7 @@ bool test_3(queue Queue) {
});
Queue.wait();
PassB = checkUSM(usmPtr, Range, Result);
// TODO: Avoid printing anything if test passes to reduce I/O.
std::cout << "Test 3b: " << (PassB ? "PASS" : "FAIL") << std::endl;

free(usmPtr, Queue);
Expand Down

0 comments on commit 0a98fa1

Please sign in to comment.