Skip to main content

Module evaluate_parallel

Module evaluate_parallel 

Source
Expand description

Parallel sibling of crate::evaluate::evaluate_with (ADR-0047).

The outer (k, i) cell loop is dispatched via par_iter against a per-worker CellScratch; the calling thread folds the results into pre-sized output Vecs at deterministic flat indices.

Strict-mode bit-equality across thread counts holds by construction: output writes go to deterministic k*n_a*n_i + a*n_i + i slots, the matching kernel is pure on owned data, accumulate() runs serially on the dense output, and the optional retained-IoU map is built in canonical (k, i) order. The parity harness asserts this property along the num_threads axis.

The caller must install a rayon::ThreadPool around the call; this module uses par_iter against the ambient pool.

Functionsยง

evaluate_bbox_parallel
Parallel sibling of crate::evaluate::evaluate_bbox.
evaluate_boundary_cached_parallel
Parallel sibling of crate::evaluate::evaluate_boundary_cached.
evaluate_boundary_parallel
Parallel sibling of crate::evaluate::evaluate_boundary.
evaluate_keypoints_parallel
Parallel sibling of crate::evaluate::evaluate_keypoints.
evaluate_segm_cached_parallel
Parallel sibling of crate::evaluate::evaluate_segm_cached.
evaluate_segm_parallel
Parallel sibling of crate::evaluate::evaluate_segm.
evaluate_with_parallel
Parallel sibling of crate::evaluate::evaluate_with. Caller installs a rayon::ThreadPool around the call.