Home
last modified time | relevance | path

Searched refs:Threads (Results 1 – 25 of 98) sorted by relevance

1234

/llvm-project/third-party/benchmark/test/
H A Dinternal_threading_test.cc46 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(1);
47 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(1)->UseRealTime();
48 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(1)->UseManualTime();
49 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(1)->MeasureProcessCPUTime();
52 ->Threads(1)
57 ->Threads(1)
61 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(2);
62 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(2)->UseRealTime();
63 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(2)->UseManualTime();
64 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(2)->MeasureProcessCPUTime();
[all …]
H A Dbenchmark_setup_teardown_test.cc69 ->Threads(5)
70 ->Threads(10)
71 ->Threads(15);
/llvm-project/libcxx/benchmarks/
H A Dshared_mutex_vs_mutex.bench.cpp
H A Dstringstream.bench.cpp
/llvm-project/offload/test/offloading/
H A Dmalloc_parallel.c11 int Threads = 64; in main() local
15 DP = (long unsigned **)malloc(sizeof(long unsigned *) * Threads * Teams); in main()
18 thread_limit(Threads) in main()
19 for (int i = 0; i < Threads * Teams; ++i) in main()
23 thread_limit(Threads) in main()
24 for (int i = 0; i < Threads * Teams; ++i) { in main()
32 thread_limit(Threads) reduction(+ : s) in main()
33 for (int i = 0; i < Threads * Teams; ++i) { in main()
H A Dmalloc.c10 int Threads = 64; in main() local
15 DP = (long unsigned *)malloc(sizeof(long unsigned) * N * Threads * Teams); in main()
18 thread_limit(Threads) is_device_ptr(DP) in main()
19 for (int i = 0; i < Threads * Teams; ++i) { in main()
27 thread_limit(Threads) reduction(+ : s) in main()
28 for (int i = 0; i < Threads * Teams; ++i) { in main()
/llvm-project/llvm/unittests/Support/
H A DThreadSafeAllocatorTest.cpp80 DefaultThreadPool Threads; in TEST() local
82 Threads.async([&Alloc]() { in TEST()
90 Threads.async([&Alloc]() { in TEST()
101 Threads.wait(); // all allocations done. in TEST()
107 DefaultThreadPool Threads; in TEST() local
110 Threads.async( in TEST()
117 Threads.wait(); in TEST()
126 DefaultThreadPool Threads; in TEST() local
129 Threads.async( in TEST()
136 Threads.wait(); in TEST()
/llvm-project/llvm/unittests/ADT/
H A DLazyAtomicPointerTest.cpp21 DefaultThreadPool Threads; in TEST() local
23 Threads.async([&]() { in TEST()
33 Threads.wait(); in TEST()
41 DefaultThreadPool Threads; in TEST() local
46 Threads.async([&]() { in TEST()
77 Threads.wait(); in TEST()
/llvm-project/compiler-rt/lib/scudo/standalone/tests/
H A Dtsd_test.cpp166 std::thread Threads[32]; in testRegistryThreaded() local
167 for (scudo::uptr I = 0; I < ARRAY_SIZE(Threads); I++) in testRegistryThreaded()
168 Threads[I] = std::thread(stressCache<AllocatorT>, Allocator.get()); in testRegistryThreaded()
174 for (auto &T : Threads) in testRegistryThreaded()
222 std::thread Threads[32]; in TEST() local
223 for (scudo::uptr I = 0; I < ARRAY_SIZE(Threads); I++) in TEST()
224 Threads[I] = std::thread(stressSharedRegistry, Allocator.get()); in TEST()
230 for (auto &T : Threads) in TEST()
240 for (scudo::uptr I = 0; I < ARRAY_SIZE(Threads); I++) in TEST()
241 Threads[I] = std::thread(stressSharedRegistry, Allocator.get()); in TEST()
[all …]
H A Dwrappers_cpp_test.cpp195 std::thread Threads[32]; in TEST_F() local
196 for (size_t I = 0U; I < sizeof(Threads) / sizeof(Threads[0]); I++) in TEST_F()
197 Threads[I] = std::thread(stressNew); in TEST_F()
203 for (auto &T : Threads) in TEST_F()
228 std::vector<std::thread *> Threads; in TEST_F() local
241 Threads.push_back(T); in TEST_F()
269 for (auto Thread : Threads) in TEST_F()
271 Threads.clear(); in TEST_F()
H A Dmutex_test.cpp86 pthread_t Threads[NumberOfThreads]; in TEST() local
88 pthread_create(&Threads[I], 0, lockThread, &Data); in TEST()
90 pthread_join(Threads[I], 0); in TEST()
96 pthread_t Threads[NumberOfThreads]; in TEST() local
98 pthread_create(&Threads[I], 0, tryThread, &Data); in TEST()
100 pthread_join(Threads[I], 0); in TEST()
H A Dcondition_variable_test.cpp20 std::thread Threads[NumThreads]; in simpleWaitAndNotifyAll() local
28 Threads[I] = std::thread( in simpleWaitAndNotifyAll()
45 for (std::thread &T : Threads) in simpleWaitAndNotifyAll()
H A Dsecondary_test.cpp253 std::thread Threads[16]; in TEST_F() local
254 for (scudo::uptr I = 0; I < ARRAY_SIZE(Threads); I++) in TEST_F()
255 Threads[I] = in TEST_F()
262 for (auto &T : Threads) in TEST_F()
/llvm-project/llvm/lib/Support/
H A DThreadPool.cpp40 if (Threads.size() >= MaxThreadCount) in grow()
43 while (static_cast<int>(Threads.size()) < newThreadCount) { in grow()
44 int ThreadID = Threads.size(); in grow()
45 Threads.emplace_back([this, ThreadID] { in grow()
172 for (const llvm::thread &Thread : Threads) in isWorkerThread()
186 for (auto &Worker : Threads) in ~StdThreadPool()
H A DParallel.cpp55 Threads.reserve(ThreadCount); in ThreadPoolExecutor()
56 Threads.resize(1); in ThreadPoolExecutor()
60 auto &Thread0 = Threads[0]; in ThreadPoolExecutor()
63 Threads.emplace_back([=] { work(S, I); }); in ThreadPoolExecutor()
86 for (std::thread &T : Threads) in ~ThreadPoolExecutor()
131 std::vector<std::thread> Threads; in work()
154 std::vector<std::thread> Threads; global() member in llvm::parallel::detail::__anon5042709c0111::ThreadPoolExecutor
/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
H A Dmutex_duration.pass.cpp42 static const unsigned Threads = 5; variable
44 std::atomic<unsigned> CountDown(Threads);
76 for (unsigned i = 0; i < Threads; ++i) in main()
90 for (unsigned i = 0; i < Threads; ++i) in main()
H A Dmutex_time_point.pass.cpp42 static constexpr unsigned Threads = 5; variable
44 std::atomic<unsigned> CountDown(Threads);
70 for (unsigned i = 0; i < Threads; ++i) in main()
82 for (unsigned i = 0; i < Threads; ++i) in main()
/llvm-project/compiler-rt/lib/sanitizer_common/tests/
H A Dmalloc_stress_transfer_test.cpp26 std::thread *Threads[kNumThreads]; in main() local
27 for (auto &T : Threads) T = new std::thread(&Thread); in main()
28 for (auto T : Threads) { in main()
H A Dsanitizer_stackdepot_test.cpp129 int Threads; member
162 << "_" << info.param.Threads << (info.param.UseCount ? "_UseCount" : "") in PrintStackDepotBenchmarkParams()
197 for (int i = 0; i < Param.Threads; ++i) in TEST_P()
/llvm-project/compiler-rt/lib/gwp_asan/tests/
H A Dthread_contention.cpp48 std::vector<std::thread> Threads; in runThreadContentionTest() local
51 Threads.emplace_back(asyncTask, GPA, &StartingGun, NumIterations); in runThreadContentionTest()
56 for (auto &T : Threads) in runThreadContentionTest()
H A Dmutex_test.cpp67 std::vector<std::thread> Threads; in runSynchronisedTest() local
76 Threads.emplace_back(synchronousIncrementTask, &StartingGun, &Mu, &Counter, in runSynchronisedTest()
80 for (auto &T : Threads) in runSynchronisedTest()
H A Drecoverable.cpp173 std::vector<std::thread> Threads; in runInterThreadThrashingSingleAlloc() local
179 Threads.emplace_back(singleAllocThrashTask, GPA, &StartingGun, in runInterThreadThrashingSingleAlloc()
185 for (auto &T : Threads) in runInterThreadThrashingSingleAlloc()
/llvm-project/clang-tools-extra/clangd/index/
H A DBackgroundRebuild.h50 unsigned Threads) in BackgroundIndexRebuilder() argument
51 : TUsBeforeFirstBuild(Threads), Target(Target), Source(Source) {} in BackgroundIndexRebuilder()
/llvm-project/llvm/tools/dsymutil/
H A Ddsymutil.cpp372 Options.LinkOpts.Threads = atoi(NumThreads->getValue()); in getOptions()
374 Options.LinkOpts.Threads = 0; // Use all available hardware threads in getOptions()
377 Options.LinkOpts.Threads = 1; in getOptions()
726 // thread pool strategy here instead of modifying LinkOpts.Threads. in dsymutil_main()
728 Options.LinkOpts.Statistics ? 1 : Options.LinkOpts.Threads); in dsymutil_main()
729 if (Options.LinkOpts.Threads == 0) { in dsymutil_main()
735 DefaultThreadPool Threads(S); in dsymutil_main()
824 Threads.async(LinkLambda, OS); in dsymutil_main()
827 Threads.wait(); in dsymutil_main()
740 DefaultThreadPool Threads(S); dsymutil_main() local
/llvm-project/libc/benchmarks/
H A DCMakeLists.txt11 find_package(Threads)
106 Threads::Threads

1234