Lines Matching defs:NumThreads
267 cl::opt<unsigned> NumThreads(
271 cl::aliasopt(NumThreads));
942 // If NumThreads is not specified, auto-detect a good default.
943 if (NumThreads == 0)
944 NumThreads = std::min(hardware_concurrency().compute_thread_count(),
949 for (unsigned I = 0; I < NumThreads; ++I)
954 if (NumThreads == 1) {
959 DefaultThreadPool Pool(hardware_concurrency(NumThreads));
961 // Load the inputs in parallel (N/NumThreads serial steps).
966 Ctx = (Ctx + 1) % NumThreads;
970 // Merge the writer contexts together (~ lg(NumThreads) serial steps).