pub fn analyse(
graph: &ComputeGraph,
max_streams: usize,
) -> GraphResult<StreamPlan>Expand description
Runs the stream partitioning pass.
max_streams— upper bound on the number of streams to create. Passing1disables parallelism (all nodes on stream 0). Passing0is treated as1.
§Errors
Returns GraphError::EmptyGraph if there are no nodes.
Returns GraphError::StreamPartitioningFailed on internal errors.