[FRONTEND] Give col_per_thread an initial value to make the compiler happy (#535)

Signed-off-by: Mengchi Zhang <mengchi@fb.com>
This commit is contained in:
Mengchi Zhang
2022-06-06 12:48:23 -07:00
committed by GitHub
parent f13cbaab9f
commit 2cdc6d35c4

View File

@@ -2359,7 +2359,7 @@ void generator::visit_reducend_inst_fast(ir::reduce_inst* x, std::function<Value
auto arg_vals = vals_.at(arg);
std::vector<indices_t> arg_idxs = idxs_.at(arg);
size_t n_elts = arg_idxs.size();
unsigned col_per_thread;
unsigned col_per_thread = 0;
Value* warp_i;
Value* warp_j;
if(analysis::scanline_layout* scanline = layout->to_scanline()){