diff --git a/SYCL/Tracing/code_location_queue_copy.cpp b/SYCL/Tracing/code_location_queue_copy.cpp deleted file mode 100644 index cd1303e3d2..0000000000 --- a/SYCL/Tracing/code_location_queue_copy.cpp +++ /dev/null @@ -1,27 +0,0 @@ -// UNSUPPORTED: windows -// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -// RUN: %CPU_RUN_PLACEHOLDER sycl-trace --sycl %t.out %CPU_CHECK_PLACEHOLDER - -// Test tracing of the code location data for queue.copy in case of failure -// (exception generation) -// -// CHECK: code_location_queue_copy.cpp:18 main - -#include - -int main() { - sycl::queue Q; - bool ExceptionCaught = false; - unsigned char *HostAllocSrc = (unsigned char *)sycl::malloc_host(1, Q); - unsigned char *HostAllocDst = NULL; - try { - Q.copy(HostAllocDst, HostAllocSrc, 1); - } catch (sycl::exception &e) { - std::ignore = e; - ExceptionCaught = true; - } - Q.wait(); - sycl::free(HostAllocSrc, Q); - - return !ExceptionCaught; -} diff --git a/SYCL/Tracing/code_location_queue_parallel_for.cpp b/SYCL/Tracing/code_location_queue_parallel_for.cpp deleted file mode 100644 index b89cc27439..0000000000 --- a/SYCL/Tracing/code_location_queue_parallel_for.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// UNSUPPORTED: windows -// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -// RUN: %CPU_RUN_PLACEHOLDER sycl-trace --sycl %t.out %CPU_CHECK_PLACEHOLDER - -// Test tracing of the code location data for queue.parallel_for in case of -// failure (exception generation) -// -// CHECK: code_location_queue_parallel_for.cpp:22 E2ETestKernel - -#include - -int main() { - sycl::queue Queue; - sycl::buffer Buf(8); - sycl::device Dev = Queue.get_device(); - sycl::id<1> MaxWISizes = - Dev.get_info>(); - bool ExceptionCaught = false; - try { - Queue.parallel_for( - sycl::nd_range<1>{MaxWISizes.get(0), 2 * MaxWISizes.get(0)}, - [](sycl::id<1> idx) {}); - } catch (...) { - ExceptionCaught = true; - } - Queue.wait(); - return !ExceptionCaught; -} diff --git a/SYCL/Tracing/code_location_queue_submit.cpp b/SYCL/Tracing/code_location_queue_submit.cpp deleted file mode 100644 index 9e595c7407..0000000000 --- a/SYCL/Tracing/code_location_queue_submit.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// UNSUPPORTED: windows -// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -// RUN: %CPU_RUN_PLACEHOLDER sycl-trace --sycl %t.out %CPU_CHECK_PLACEHOLDER - -// Test tracing of the code location data for queue.submit in case of failure -// (exception generation) -// -// CHECK: code_location_queue_submit.cpp:18 main - -#include - -int main() { - sycl::queue Q; - bool ExceptionCaught = false; - unsigned char *HostAllocSrc = (unsigned char *)sycl::malloc_host(1, Q); - unsigned char *HostAllocDst = NULL; - try { - Q.submit( - [&](sycl::handler &cgh) { cgh.copy(HostAllocDst, HostAllocSrc, 1); }); - } catch (sycl::exception &e) { - std::ignore = e; - ExceptionCaught = true; - } - Q.wait(); - sycl::free(HostAllocSrc, Q); - - return !ExceptionCaught; -}