Home
last modified time | relevance | path

Searched refs:max_threads (Results 1 – 9 of 9) sorted by relevance

/llvm-project/openmp/runtime/test/worksharing/for/
H A Domp_for_schedule_auto.c24 int max_threads = omp_get_max_threads(); in test_omp_for_auto() local
25 int* active_threads = (int*)malloc(sizeof(int)*max_threads); in test_omp_for_auto()
26 for(j = 0; j < max_threads; j++) in test_omp_for_auto()
48 for(j = 0; j < max_threads; j++) { in test_omp_for_auto()
/llvm-project/openmp/runtime/test/parallel/
H A Domp_parallel_num_threads.c10 int max_threads = 0; in test_omp_parallel_num_threads() local
18 max_threads = omp_get_num_threads (); in test_omp_parallel_num_threads()
22 for(threads = 1; threads <= max_threads; threads++) { in test_omp_parallel_num_threads()
/llvm-project/third-party/benchmark/src/
H A Dbenchmark_register.cc445 Benchmark* Benchmark::ThreadRange(int min_threads, int max_threads) { in ThreadRange() argument
447 BM_CHECK_GE(max_threads, min_threads); in ThreadRange()
449 AddRange(&thread_counts_, min_threads, max_threads, 2); in ThreadRange()
453 Benchmark* Benchmark::DenseThreadRange(int min_threads, int max_threads, in DenseThreadRange() argument
456 BM_CHECK_GE(max_threads, min_threads); in DenseThreadRange()
459 for (auto i = min_threads; i < max_threads; i += stride) { in DenseThreadRange()
462 thread_counts_.push_back(max_threads); in DenseThreadRange()
/llvm-project/openmp/runtime/src/
H A Dkmp_barrier.h95 size_t KMP_ALIGN_CACHE max_threads; // size of arrays in data structure variable
120 d->max_threads = 0; in allocate()
138 bool need_resize(size_t new_nthr) { return (new_nthr > max_threads); } in need_resize()
H A Dkmp_barrier.cpp127 // exceeds max_threads, which is the current size of all the arrays
129 KMP_DEBUG_ASSERT(nthr > max_threads); in resize()
132 max_threads = nthr * 2; in resize()
138 max_threads * sizeof(flags_s)); in resize()
140 flags[i] = (flags_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(flags_s)); in resize()
144 go = (go_s *)KMP_INTERNAL_REALLOC(go, max_threads * sizeof(go_s)); in resize()
146 go = (go_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(go_s)); in resize()
149 iter = (iter_s *)KMP_INTERNAL_REALLOC(iter, max_threads * sizeof(iter_s)); in resize()
151 iter = (iter_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(iter_s)); in resize()
155 (sleep_s *)KMP_INTERNAL_REALLOC(sleep, max_threads * sizeo in resize()
[all...]
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_thread_registry.cpp118 ThreadRegistry::ThreadRegistry(ThreadContextFactory factory, u32 max_threads, in ThreadRegistry()
121 max_threads_(max_threads),
107 ThreadRegistry(ThreadContextFactory factory,u32 max_threads,u32 thread_quarantine_size,u32 max_reuse) ThreadRegistry() argument
H A Dsanitizer_thread_registry.h93 ThreadRegistry(ThreadContextFactory factory, u32 max_threads,
/llvm-project/third-party/benchmark/include/benchmark/
H A Dbenchmark.h1285 Benchmark* ThreadRange(int min_threads, int max_threads);
1291 Benchmark* DenseThreadRange(int min_threads, int max_threads, int stride = 1);
/llvm-project/third-party/benchmark/docs/
H A Duser_guide.md840 `ThreadRange`. This takes two parameters (`min_threads` and `max_threads`) and