Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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-15.0.7/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-15.0.7/third-party/benchmark/src/
H A Dbenchmark_register.cc429 Benchmark* Benchmark::ThreadRange(int min_threads, int max_threads) { in ThreadRange() argument
431 BM_CHECK_GE(max_threads, min_threads); in ThreadRange()
433 AddRange(&thread_counts_, min_threads, max_threads, 2); in ThreadRange()
437 Benchmark* Benchmark::DenseThreadRange(int min_threads, int max_threads, in DenseThreadRange() argument
440 BM_CHECK_GE(max_threads, min_threads); in DenseThreadRange()
443 for (auto i = min_threads; i < max_threads; i += stride) { in DenseThreadRange()
446 thread_counts_.push_back(max_threads); in DenseThreadRange()
/llvm-project-15.0.7/openmp/runtime/src/
H A Dkmp_barrier.h92 size_t KMP_ALIGN_CACHE max_threads; // size of arrays in data structure variable
117 d->max_threads = 0; in allocate()
135 bool need_resize(size_t new_nthr) { return (new_nthr > max_threads); } in need_resize()
H A Dkmp_barrier.cpp129 KMP_DEBUG_ASSERT(nthr > max_threads); in resize()
132 max_threads = nthr * 2; 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()
157 sleep = (sleep_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(sleep_s)); in resize()
172 for (size_t j = 0; j < max_threads; ++j) { in go_reset()
184 size_t old_max = max_threads; in init()
185 if (nthr > max_threads) { // need more space in arrays in init()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_thread_registry.cpp107 ThreadRegistry::ThreadRegistry(ThreadContextFactory factory, u32 max_threads, in ThreadRegistry() argument
110 max_threads_(max_threads), in ThreadRegistry()
H A Dsanitizer_thread_registry.h92 ThreadRegistry(ThreadContextFactory factory, u32 max_threads,
/llvm-project-15.0.7/third-party/benchmark/include/benchmark/
H A Dbenchmark.h1080 Benchmark* ThreadRange(int min_threads, int max_threads);
1086 Benchmark* DenseThreadRange(int min_threads, int max_threads, int stride = 1);