You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support in-place collective operations in stream dialect transformations. #11249
compiler/dialectsRelating to the IREE compiler dialects (flow, hal, vm)performance ⚡Performance/optimization related work across the compiler and runtime
Most collective operations can operate in-place with some specific rules:
all_gather: in-place if |send_binding| == |recv_binding| + rank * |element_count|
all_reduce: in-place if |send_binding| == |recv_binding|
broadcast: in-place if |send_binding| == |recv_binding| (send only used on source, recv only used on targets)
reduce: in-place if |send_binding| == |recv_binding| (recv only used on targets)
reduce_scatter: in-place if |recv_binding| == |send_binding| + rank * |element_count|
Some of these may imply mandatory implicit copies within the collective implementation or are workarounds for the fixed interface. The complication is that unless we are able to fully analyze things we may not be able to assume anything about the ranges involved. This leans toward needing to trust that whatever constructed the stream ops knew it was safe to do so ahead of time so that we disable copy-on-write behavior on any collective op where send and recv alias.
For now aliasing is not allowed - the send and recv resources must be unique - and this issue is being tagged in locations that may need to change. The rough plan is to specialize MaterializeCopyOnWrite and ScheduleAllocation around collectives - as dirty as it is.
compiler/dialectsRelating to the IREE compiler dialects (flow, hal, vm)performance ⚡Performance/optimization related work across the compiler and runtime
Activity
Adding initial stream.async.collective op.
Adding initial stream.async.collective op.
Adding initial stream.async.collective op.
Adding initial stream.async.collective op.
Adding initial stream.async.collective op.
Adding initial stream.async.collective op.
Adding collectives HAL operations and compiler support. (#11342)