Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NFC][SYCL][Bindless] Define VERBOSE_PRINT before include user_types_common.hpp #12796

Merged
Merged
Show file tree
Hide file tree
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 @@ -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 <iostream>
#include <sycl/sycl.hpp>

// Uncomment to print additional test information
// #define VERBOSE_PRINT

// Returns true if test case was passed and validated
template <typename MyType, int NElems, typename OutType,
sycl::image_channel_order ChannelOrder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <iostream>
#include <sycl/sycl.hpp>

// Uncomment to print additional test information
// #define VERBOSE_PRINT

template <typename MyType, int NElems, typename OutType,
sycl::image_channel_order ChannelOrder,
sycl::image_channel_type ChannelType, typename KernelName>
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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<my_ushort4, 4, sycl::vec<uint16_t, 4>,
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<my_ushort2, 2, sycl::vec<uint16_t, 2>,
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<my_uchar4, 4, sycl::vec<uint8_t, 4>,
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<my_uchar2, 2, sycl::vec<uint8_t, 2>,
sycl::image_channel_order::rg,
Expand Down
Loading