From d652283d8e4d816c963581d6a3fa8adb5f20904c Mon Sep 17 00:00:00 2001 From: Wenju He Date: Thu, 11 Apr 2024 18:32:23 +0800 Subject: [PATCH] [NFC][SYCL][Bindless Image] Fix error print when VERBOSE_PRINT=1 (#13142) --- sycl/test-e2e/bindless_images/image_get_info.cpp | 4 ++-- sycl/test-e2e/bindless_images/read_write_1D_subregion.cpp | 2 +- sycl/test-e2e/bindless_images/read_write_2D_subregion.cpp | 2 +- .../test-e2e/bindless_images/sampling_unique_addr_modes.cpp | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sycl/test-e2e/bindless_images/image_get_info.cpp b/sycl/test-e2e/bindless_images/image_get_info.cpp index 10f100c470121..36ae93c505861 100644 --- a/sycl/test-e2e/bindless_images/image_get_info.cpp +++ b/sycl/test-e2e/bindless_images/image_get_info.cpp @@ -57,8 +57,8 @@ int main() { std::cout << "bindless_images_support: " << bindlessSupport << "\nbindless_images_shared_usm_support: " << bindlessSharedUsmSupport - << "\nbindless_images_1d_usm_support: " 1dS - << "\nbindless_images_2d_usm_support: " << S << "\n"; + << "\nbindless_images_1d_usm_support: " << usm1dSupport + << "\nbindless_images_2d_usm_support: " << usm2dSupport << "\n"; #endif // Extension: get pitch alignment information from device -- device info diff --git a/sycl/test-e2e/bindless_images/read_write_1D_subregion.cpp b/sycl/test-e2e/bindless_images/read_write_1D_subregion.cpp index ac902daf5587c..a6a9b653c375c 100644 --- a/sycl/test-e2e/bindless_images/read_write_1D_subregion.cpp +++ b/sycl/test-e2e/bindless_images/read_write_1D_subregion.cpp @@ -121,7 +121,7 @@ int main() { if (mismatch) { #ifdef VERBOSE_PRINT std::cout << "Result mismatch! Expected: " << expected[i] - << ", Actual: " << out[i][0] << std::endl; + << ", Actual: " << out[i] << std::endl; #else break; #endif diff --git a/sycl/test-e2e/bindless_images/read_write_2D_subregion.cpp b/sycl/test-e2e/bindless_images/read_write_2D_subregion.cpp index 0c56f1779527c..18084b01a124d 100644 --- a/sycl/test-e2e/bindless_images/read_write_2D_subregion.cpp +++ b/sycl/test-e2e/bindless_images/read_write_2D_subregion.cpp @@ -138,7 +138,7 @@ int main() { if (mismatch) { #ifdef VERBOSE_PRINT std::cout << "Result mismatch! Expected: " << expected[i] - << ", Actual: " << out[i][0] << std::endl; + << ", Actual: " << out[i] << std::endl; #else break; #endif diff --git a/sycl/test-e2e/bindless_images/sampling_unique_addr_modes.cpp b/sycl/test-e2e/bindless_images/sampling_unique_addr_modes.cpp index 5356f4fa1d129..b19431c620061 100644 --- a/sycl/test-e2e/bindless_images/sampling_unique_addr_modes.cpp +++ b/sycl/test-e2e/bindless_images/sampling_unique_addr_modes.cpp @@ -86,9 +86,9 @@ int main() { size_t dim2 = it.get_local_id(2); // Address outside dimension domain - float fdim0 = float(dim0 + width + 0.5) / (float)width; - float fdim1 = float(dim1 + height + 0.5) / (float)height; - float fdim2 = float(dim2 + depth + 0.5) / (float)depth; + float fdim0 = float(dim0 + width + 0.5f) / (float)width; + float fdim1 = float(dim1 + height + 0.5f) / (float)height; + float fdim2 = float(dim2 + depth + 0.5f) / (float)depth; // Extension: sample image data from handle float px1 = syclexp::sample_image(