Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 6305c41

Browse files
authored
[SYCL][Fusion] Explicitly initialize vec in different_nd_ranges test (#1623)
Explicitly initialize vec to ensure all components are zero-initialied. Signed-off-by: Victor Perez <[email protected]>
1 parent 8a5cbce commit 6305c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SYCL/KernelFusion/different_nd_ranges.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ template <std::size_t Dimensions> class FillBase {
3636

3737
protected:
3838
template <typename F> static DataTy getValue(F gen) {
39-
DataTy x;
39+
DataTy x{0};
4040
for (std::size_t i = 0; i < Dimensions; ++i) {
4141
x[i] = gen(i);
4242
}

0 commit comments

Comments
 (0)