From 7b41068d36e789f387701f9b146b26b3f267124d Mon Sep 17 00:00:00 2001 From: Wenju He Date: Tue, 27 Feb 2024 16:02:56 +0800 Subject: [PATCH] [NFC][SYCL][Bindless] Define VERBOSE_PRINT before include user_types_common.hpp (#12796) Because VERBOSE_PRINT is also used inside file user_types_common.hpp --- .../user_types/mipmap_read_user_type_2D.cpp | 6 +++--- .../user_types/read_write_user_type.cpp | 18 +++++++++++------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/sycl/test-e2e/bindless_images/user_types/mipmap_read_user_type_2D.cpp b/sycl/test-e2e/bindless_images/user_types/mipmap_read_user_type_2D.cpp index 56ce6b3e63c04..3d2e863c5048e 100644 --- a/sycl/test-e2e/bindless_images/user_types/mipmap_read_user_type_2D.cpp +++ b/sycl/test-e2e/bindless_images/user_types/mipmap_read_user_type_2D.cpp @@ -4,13 +4,13 @@ // RUN: %{build} -o %t.out // RUN: %{run} %t.out +// Uncomment to print additional test information +// #define VERBOSE_PRINT + #include "user_types_common.hpp" #include #include -// Uncomment to print additional test information -// #define VERBOSE_PRINT - // Returns true if test case was passed and validated template #include -// Uncomment to print additional test information -// #define VERBOSE_PRINT - template @@ -86,6 +86,10 @@ bool run_test() { q.ext_oneapi_copy(imgMemoryOut.get_handle(), dataOut, desc); q.wait_and_throw(); + + syclexp::destroy_image_handle(unsampledImgIn, q); + syclexp::destroy_image_handle(sampledImgIn, q); + syclexp::destroy_image_handle(imgOut, q); } catch (sycl::exception e) { std::cout << "SYCL exception caught: " << e.what() << "\n"; return false; @@ -146,24 +150,24 @@ int main() { sycl::image_channel_order::rg, sycl::image_channel_type::unsigned_int32, class myuint_2>(); - printTestName("Running my_short4"); + printTestName("Running my_ushort4"); validated &= run_test, sycl::image_channel_order::rgba, sycl::image_channel_type::unsigned_int16, class myushort_4>(); - printTestName("Running my_short2"); + printTestName("Running my_ushort2"); validated &= run_test, sycl::image_channel_order::rg, sycl::image_channel_type::unsigned_int16, class myushort_2>(); - printTestName("Running my_char4"); + printTestName("Running my_uchar4"); validated &= run_test, sycl::image_channel_order::rgba, sycl::image_channel_type::unsigned_int8, class myuchar_4>(); - printTestName("Running my_char2"); + printTestName("Running my_uchar2"); validated &= run_test, sycl::image_channel_order::rg,