Skip to main content

Module parallel

Module parallel 

Source
Expand description

§Parallel Loop Primitives

This module implements parallel loop constructs for Loop IR:

  • parFor: Parallel iteration over a range
  • parMap: Parallel map over tensor elements
  • parReduce: 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.
ParallelConfig
Configuration for parallel execution.
ParallelInfo
Result of parallelization analysis for a loop.
ParallelPass
Parallelization pass state.
ParallelReport
Report of parallelization results.
ParallelizedLoopInfo
Information about a parallelized loop.
Range
Range for parallel iteration.

Enums§

ParallelError
Errors that can occur during parallelization.
ParallelStrategy
Parallel execution strategy.