8000 Fix GCC11 compilation issue. · pytorch/pytorch@7e697fc · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e697fc

Browse files
committed
Fix GCC11 compilation issue.
*Currently on CI, the warning is being treated as error. * Fixes the warning that comes with gcc compiler with SVE changes. error: ‘<anonymous>’ is used uninitialized [-Werror=uninitialized] at the line: mask = Vectorized<T>(); // "zero out" Signed-off-by: maajidkhann <maajidkhan.n@fujitsu.com>
1 parent 5480a60 commit 7e697fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aten/src/ATen/cpu/vec/vec_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ inline mask_gather(const Vectorized<T>& src, T const* base_addr,
979979
buffer[i] = src_arr[i];
980980
}
981981
}
982-
mask = Vectorized<T>(); // "zero out" mask
982+
mask = Vectorized<T>(static_cast<T>(0)); // "zero out" mask
983983
return Vectorized<T>::loadu(static_cast<void*>(buffer));
984984
}
985985

0 commit comments

Comments
 (0)
0