Skip to content

Commit 1ce4757

Browse files
authored
[Enhancement] Refine error messaging in LowerBulkCopy for global and shared range checks (#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 e68c856 commit 1ce4757

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
@@ -187,8 +187,9 @@ Stmt Copy::LowerBulkCopy(const LowerArgs &T, arith::Analyzer *analyzer) const {
187187
}
188188
auto s_range = shared_range[s_range_idx++];
189189
ICHECK(StructuralEqual()(g_range->extent, s_range->extent))
190-
<< "global_range[" << i << "] is illegal, global_range[" << i
191-
<< "] = " << g_range->extent << ", shared_range[" << s_range_idx
190+
<< global_tensor->name << "[" << i << "] is illegal, "
191+
<< global_tensor->name << "[" << i << "] = " << g_range->extent << ", "
192+
<< shared_tensor->name << "[" << s_range_idx
192193
<< "] = " << s_range->extent;
193194
}
194195

0 commit comments

Comments
 (0)