Skip to content

Commit

Permalink
xe: jit: codegen: allow scalar-based reduce for incompatible layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
echeresh committed Aug 2, 2024
1 parent ff680fc commit 281dd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/codegen/reduce.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ class reduce_impl_t {
a = layout_t(a.type(), a.ndims(), 0, a_blocks);
return find_1d_tile(a, b);
}
return tensor_t(std::vector<dim_t>(b.ndims(), 1));
}

ir_assert(ok) << "Incompatible layouts for reduction.";
ir_assert(dim_t(b0.stride) == 1)
<< "Reduction is not supported for non-unit dst stride.";

Expand Down

0 comments on commit 281dd3b

Please sign in to comment.