Skip to main content

knearest_team_threads

Function knearest_team_threads 

Source
pub fn knearest_team_threads() -> usize
Expand description

Threads that ran the last k-nearest query.

Zero before the first query. This is the k-nearest team when it ran, and the rayon pool size otherwise. The team is sized as libgomp sizes a parallel region the caller opens: omp_get_max_threads(), trimmed by the load average under OMP_DYNAMIC and capped by OMP_THREAD_LIMIT. Its stacks follow OMP_STACKSIZE. It is resized on the next query when that size changes. A team of one is the calling thread, with no worker.