Commit a664c998 authored by Lei Wang's avatar Lei Wang Committed by LeiWang1999
Browse files

[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.
parent 3db18726
......@@ -184,8 +184,9 @@ Stmt Copy::LowerBulkCopy(const LowerArgs &T, arith::Analyzer *analyzer) const {
}
auto s_range = shared_range[s_range_idx++];
ICHECK(StructuralEqual()(g_range->extent, s_range->extent))
<< "global_range[" << i << "] is illegal, global_range[" << i
<< "] = " << g_range->extent << ", shared_range[" << s_range_idx
<< global_tensor->name << "[" << i << "] is illegal, "
<< global_tensor->name << "[" << i << "] = " << g_range->extent << ", "
<< shared_tensor->name << "[" << s_range_idx
<< "] = " << s_range->extent;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment