Skip to content

Conversation

@LeiWang1999
Copy link
Member

This pull request introduces enhancements to layout inference and optimization for parallel operations, along with a minor change in a Python wrapper file. The most significant updates involve adding support for multiple inference levels and improving layout computation logic.

Enhancements to layout inference and optimization:

  • Added multiple inference levels for layout optimization: Introduced InferLevel with three levels (kStrict, kCommon, kFree) to control the aggressiveness of layout inference and optimization. Each level has distinct behavior, ranging from conservative to highly permissive. This change is documented in ParallelOp::InferLayout.

  • Updated layout inference logic in ParallelOp::InferLayout: Enhanced the method to handle cases where read_source_buffer is defined, improving layout computation flexibility and accuracy.

  • Iterative layout inference in Stmt Copy::Lower: Modified the Lower method to iterate over all inference levels (kCommon, kStrict, kFree) for layout inference, providing more robust layout optimization.

Miscellaneous:

  • Minor update in tilelang/jit/adapter/wrapper.py: Added a return 0; statement to the init function, ensuring proper function termination.

* Updated the Copy operation to infer layouts at multiple levels (kCommon, kStrict, kFree) for enhanced flexibility in layout optimization.
* Added detailed documentation for layout inference levels in ParallelOp, clarifying their purposes and use cases.
* Refactored layout inference logic to accommodate new levels, improving overall robustness and performance in parallel operations.
@LeiWang1999 LeiWang1999 merged commit a8a2780 into tile-ai:main Apr 23, 2025
3 checks passed
LeiWang1999 added a commit to LeiWang1999/tilelang that referenced this pull request Jul 18, 2025
* [Enhancement] Improve layout inference in Copy operation (tile-ai#426)

* Updated the Copy operation to infer layouts at multiple levels (kCommon, kStrict, kFree) for enhanced flexibility in layout optimization.
* Added detailed documentation for layout inference levels in ParallelOp, clarifying their purposes and use cases.
* Refactored layout inference logic to accommodate new levels, improving overall robustness and performance in parallel operations.

* lint fix
LeiWang1999 added a commit to LeiWang1999/tilelang that referenced this pull request Jul 20, 2025
* [Enhancement] Improve layout inference in Copy operation (tile-ai#426)

* Updated the Copy operation to infer layouts at multiple levels (kCommon, kStrict, kFree) for enhanced flexibility in layout optimization.
* Added detailed documentation for layout inference levels in ParallelOp, clarifying their purposes and use cases.
* Refactored layout inference logic to accommodate new levels, improving overall robustness and performance in parallel operations.

* lint fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant