We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f207c commit 5c17d80Copy full SHA for 5c17d80
sycl/include/sycl/detail/vector_arith.hpp
@@ -72,7 +72,7 @@ struct VecOperators {
72
BinOp Op{};
73
if constexpr (is_host ||
74
std::is_same_v<element_type, ext::oneapi::bfloat16>) {
75
- result_t res;
+ result_t res{};
76
for (size_t i = 0; i < N; ++i)
77
if constexpr (is_logical)
78
res[i] = Op(Lhs[i], Rhs[i]) ? -1 : 0;
@@ -137,7 +137,7 @@ struct VecOperators {
137
UnaryOp Op{};
138
139
140
141
142
143
res[i] = Op(self[i]) ? -1 : 0;
0 commit comments