Skip to content

Commit d5a85ff

Browse files
committed
[Enhancement] Refine error messaging in LowerBulkCopy for global and shared range checks (tile-ai#599)
* [Enhancement] Improve error messaging for global and shared range legality checks in LowerBulkCopy - Updated error messages in the LowerBulkCopy function to provide clearer context when global and shared ranges are illegal. - Enhanced the readability of the error output by including tensor names, improving debugging and validation processes during bulk copy operations. * [Enhancement] Refine error messaging in LowerBulkCopy for global and shared range checks - Improved the clarity of error messages in the LowerBulkCopy function by enhancing the output format. - Included additional context in error messages to aid debugging when global and shared ranges are found to be illegal, ensuring better traceability during bulk copy operations.
1 parent 659aad8 commit d5a85ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/op/bulk_copy.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ Stmt Copy::LowerBulkCopy(const LowerArgs &T, arith::Analyzer *analyzer) const {
184184
}
185185
auto s_range = shared_range[s_range_idx++];
186186
ICHECK(StructuralEqual()(g_range->extent, s_range->extent))
187-
<< "global_range[" << i << "] is illegal, global_range[" << i
188-
<< "] = " << g_range->extent << ", shared_range[" << s_range_idx
187+
<< global_tensor->name << "[" << i << "] is illegal, "
188+
<< global_tensor->name << "[" << i << "] = " << g_range->extent << ", "
189+
<< shared_tensor->name << "[" << s_range_idx
189190
<< "] = " << s_range->extent;
190191
}
191192

0 commit comments

Comments
 (0)