Skip to content

Commit cf6f2c4

Browse files
[SYCL]E2E] Fix fpga_pipes.cpp verification bug (#16796)
fixes #16693 --------- Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
1 parent 15e3e9d commit cf6f2c4

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

sycl/test-e2e/Basic/fpga_tests/fpga_pipes.cpp

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,11 @@ template <int TestNumber> int test_array_th_nb_pipe(sycl::queue Queue) {
194194

195195
sycl::host_accessor readHostBuffer(writeBuf, sycl::read_only);
196196
for (size_t i = 0; i != N; ++i) {
197-
if (readHostBuffer[i] != i)
197+
if (readHostBuffer[i] != i) {
198198
std::cout << "Test: " << TestNumber << "\nResult mismatches "
199199
<< readHostBuffer[i] << " Vs expected " << i << std::endl;
200-
return -1;
200+
return -1;
201+
}
201202
}
202203

203204
return 0;
@@ -309,10 +310,11 @@ template <int TestNumber> int test_array_th_bl_pipe(sycl::queue Queue) {
309310

310311
sycl::host_accessor readHostBuffer(writeBuf, sycl::read_only);
311312
for (size_t i = 0; i != N; ++i) {
312-
if (readHostBuffer[i] != i)
313+
if (readHostBuffer[i] != i) {
313314
std::cout << "Test: " << TestNumber << "\nResult mismatches "
314315
<< readHostBuffer[i] << " Vs expected " << i << std::endl;
315-
return -1;
316+
return -1;
317+
}
316318
}
317319

318320
return 0;
@@ -343,14 +345,8 @@ int main() {
343345
Error |= test_simple_bl_pipe<forward_bl_pipe, /*test number*/ 8>(Queue);
344346
Error |= test_simple_bl_pipe<templ_bl_pipe<0>, /*test number*/ 9>(Queue);
345347
Error |= test_multiple_bl_pipe</*test number*/ 10>(Queue);
346-
347-
// Test for an array data passing through a pipe
348-
// These two tests are failing in post-commit testing (
349-
// https://github.com/intel/llvm/issues/16693 ) disabling them, rather than
350-
// the entire test.
351-
352-
// Error |= test_array_th_nb_pipe</*test number*/ 11>(Queue);
353-
// Error |= test_array_th_bl_pipe</*test number*/ 12>(Queue);
348+
Error |= test_array_th_nb_pipe</*test number*/ 11>(Queue);
349+
Error |= test_array_th_bl_pipe</*test number*/ 12>(Queue);
354350

355351
// TODO Remove when #14308 is closed
356352
std::cerr << "DEBUG: Finished with result " << Error << std::endl;

0 commit comments

Comments
 (0)