Skip to content

Commit

Permalink
[NFC][SYCL][Bindless Image] Fix error print when VERBOSE_PRINT=1 (#13142
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wenju-he committed Apr 11, 2024
1 parent 541dd3a commit d652283
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sycl/test-e2e/bindless_images/image_get_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/bindless_images/read_write_1D_subregion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/bindless_images/read_write_2D_subregion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions sycl/test-e2e/bindless_images/sampling_unique_addr_modes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>(
Expand Down

0 comments on commit d652283

Please sign in to comment.