Skip to main content

analyse

Function analyse 

Source
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. Passing 1 disables parallelism (all nodes on stream 0). Passing 0 is treated as 1.

§Errors

Returns GraphError::EmptyGraph if there are no nodes. Returns GraphError::StreamPartitioningFailed on internal errors.