fn compute_topology(
devices: &MultiDevice,
topology_detected: bool,
cores_max: usize,
) -> Vec<usize>Expand description
Map cores to their associated hardware queue. Shared queues repeat across cores; sparse unavailable cores default to 0; undetected hardware falls back to the core identity as a best-guess maintaining core locality.