Home
last modified time | relevance | path

Searched refs:TaskSize (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DParallel.h134 ptrdiff_t TaskSize = std::distance(Begin, End) / 1024; in parallel_for_each() local
135 if (TaskSize == 0) in parallel_for_each()
136 TaskSize = 1; in parallel_for_each()
139 while (TaskSize < std::distance(Begin, End)) { in parallel_for_each()
140 TG.spawn([=, &Fn] { std::for_each(Begin, Begin + TaskSize, Fn); }); in parallel_for_each()
141 Begin += TaskSize; in parallel_for_each()
148 ptrdiff_t TaskSize = (End - Begin) / 1024; in parallel_for_each_n() local
149 if (TaskSize == 0) in parallel_for_each_n()
150 TaskSize = 1; in parallel_for_each_n()
154 for (; I + TaskSize < End; I += TaskSize) { in parallel_for_each_n()
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DParallel.h134 ptrdiff_t TaskSize = std::distance(Begin, End) / MaxTasksPerGroup; in parallel_for_each() local
135 if (TaskSize == 0) in parallel_for_each()
136 TaskSize = 1; in parallel_for_each()
139 while (TaskSize < std::distance(Begin, End)) { in parallel_for_each()
140 TG.spawn([=, &Fn] { std::for_each(Begin, Begin + TaskSize, Fn); }); in parallel_for_each()
141 Begin += TaskSize; in parallel_for_each()
150 ptrdiff_t TaskSize = (End - Begin) / MaxTasksPerGroup; in parallel_for_each_n() local
151 if (TaskSize == 0) in parallel_for_each_n()
152 TaskSize = 1; in parallel_for_each_n()
156 for (; I + TaskSize < End; I += TaskSize) { in parallel_for_each_n()
[all …]