Skip to content

Commit d652283

Browse files
authored
[NFC][SYCL][Bindless Image] Fix error print when VERBOSE_PRINT=1 (#13142)
1 parent 541dd3a commit d652283

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

sycl/test-e2e/bindless_images/image_get_info.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ int main() {
5757
std::cout << "bindless_images_support: " << bindlessSupport
5858
<< "\nbindless_images_shared_usm_support: "
5959
<< bindlessSharedUsmSupport
60-
<< "\nbindless_images_1d_usm_support: " 1dS
61-
<< "\nbindless_images_2d_usm_support: " << S << "\n";
60+
<< "\nbindless_images_1d_usm_support: " << usm1dSupport
61+
<< "\nbindless_images_2d_usm_support: " << usm2dSupport << "\n";
6262
#endif
6363

6464
// Extension: get pitch alignment information from device -- device info

sycl/test-e2e/bindless_images/read_write_1D_subregion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int main() {
121121
if (mismatch) {
122122
#ifdef VERBOSE_PRINT
123123
std::cout << "Result mismatch! Expected: " << expected[i]
124-
<< ", Actual: " << out[i][0] << std::endl;
124+
<< ", Actual: " << out[i] << std::endl;
125125
#else
126126
break;
127127
#endif

sycl/test-e2e/bindless_images/read_write_2D_subregion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ int main() {
138138
if (mismatch) {
139139
#ifdef VERBOSE_PRINT
140140
std::cout << "Result mismatch! Expected: " << expected[i]
141-
<< ", Actual: " << out[i][0] << std::endl;
141+
<< ", Actual: " << out[i] << std::endl;
142142
#else
143143
break;
144144
#endif

sycl/test-e2e/bindless_images/sampling_unique_addr_modes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ int main() {
8686
size_t dim2 = it.get_local_id(2);
8787

8888
// Address outside dimension domain
89-
float fdim0 = float(dim0 + width + 0.5) / (float)width;
90-
float fdim1 = float(dim1 + height + 0.5) / (float)height;
91-
float fdim2 = float(dim2 + depth + 0.5) / (float)depth;
89+
float fdim0 = float(dim0 + width + 0.5f) / (float)width;
90+
float fdim1 = float(dim1 + height + 0.5f) / (float)height;
91+
float fdim2 = float(dim2 + depth + 0.5f) / (float)depth;
9292

9393
// Extension: sample image data from handle
9494
float px1 = syclexp::sample_image<float>(

0 commit comments

Comments
 (0)