Expand description
§Parallel Loop Primitives
This module implements parallel loop constructs for Loop IR:
parFor: Parallel iteration over a rangeparMap: Parallel map over tensor elementsparReduce: Parallel reduction with deterministic chunking
§M3 Exit Criteria
- Reductions scale linearly up to 8 cores
- Deterministic mode produces identical results across runs
§Scheduling Contract (from H26-SPEC)
- Chunking MUST be deterministic given fixed worker count
- Non-deterministic mode allowed for floats (document variance)
Structs§
- ParFor
- Parallel for loop descriptor.
- ParMap
- Parallel map descriptor.
- ParReduce
- Parallel reduce descriptor.
- Parallel
Config - Configuration for parallel execution.
- Parallel
Info - Result of parallelization analysis for a loop.
- Parallel
Pass - Parallelization pass state.
- Parallel
Report - Report of parallelization results.
- Parallelized
Loop Info - Information about a parallelized loop.
- Range
- Range for parallel iteration.
Enums§
- Parallel
Error - Errors that can occur during parallelization.
- Parallel
Strategy - Parallel execution strategy.