mscclpp.language.loop
Classes
|
A context manager for defining pipelined loop operations in MSCCL++ programs. |
- class mscclpp.language.loop.LoopIterationContext(unit, num_chunks)
Bases:
object
A context manager for defining pipelined loop operations in MSCCL++ programs.
LoopIterationContext provides a way to define operations that will be executed in a pipelined manner across multiple iterations, where each pipeline iteration processes a specific chunk size (unit) of data. The pipeline allows overlapping execution of operations enabling efficient data processing.
- add_operation(rank, tb, operation)
Add an operation to be included in the pipeline.
This method is called internally to collect operations that should be pipelined together. Operations added here will be grouped and converted into pipeline operations when the context exits.