Skip to content

Commit 5c17d80

Browse files
Try to fix RHEL8 build
1 parent 77f207c commit 5c17d80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/include/sycl/detail/vector_arith.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct VecOperators {
7272
BinOp Op{};
7373
if constexpr (is_host ||
7474
std::is_same_v<element_type, ext::oneapi::bfloat16>) {
75-
result_t res;
75+
result_t res{};
7676
for (size_t i = 0; i < N; ++i)
7777
if constexpr (is_logical)
7878
res[i] = Op(Lhs[i], Rhs[i]) ? -1 : 0;
@@ -137,7 +137,7 @@ struct VecOperators {
137137
UnaryOp Op{};
138138
if constexpr (is_host ||
139139
std::is_same_v<element_type, ext::oneapi::bfloat16>) {
140-
result_t res;
140+
result_t res{};
141141
for (size_t i = 0; i < N; ++i)
142142
if constexpr (is_logical)
143143
res[i] = Op(self[i]) ? -1 : 0;

0 commit comments

Comments
 (0)