Skip to content

Commit

Permalink
[SYCL][Fusion][Test] Fix KernelFusion/Reduction/reduction.cpp test
Browse files Browse the repository at this point in the history
Fix test failing in some devices due to lack of synchronization.

Signed-off-by: Victor Perez <[email protected]>
  • Loading branch information
victor-eds committed Jan 30, 2024
1 parent 9b33a43 commit 86ed02b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sycl/test-e2e/KernelFusion/Reduction/reduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,12 @@ int main() {
});
});

complete_fusion_with_check(
fw, ext::codeplay::experimental::property::no_barriers{});
complete_fusion_with_check(fw);
}

constexpr int expectedMax = dataSize - 1;
constexpr int expectedSum = dataSize * expectedMax / 2;

std::cerr << sumRes << "\n";

assert(maxRes == expectedMax && "Unexpected max value");
assert(sumRes == expectedSum && "Unexpected sum value");

Expand Down

0 comments on commit 86ed02b

Please sign in to comment.