| /llvm-project/third-party/benchmark/test/ |
| H A D | internal_threading_test.cc | 46 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 D | benchmark_setup_teardown_test.cc | 69 ->Threads(5) 70 ->Threads(10) 71 ->Threads(15);
|
| /llvm-project/libcxx/benchmarks/ |
| H A D | shared_mutex_vs_mutex.bench.cpp | |
| H A D | stringstream.bench.cpp | |
| /llvm-project/offload/test/offloading/ |
| H A D | malloc_parallel.c | 11 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 D | malloc.c | 10 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 D | ThreadSafeAllocatorTest.cpp | 80 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 D | LazyAtomicPointerTest.cpp | 21 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 D | tsd_test.cpp | 166 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 D | wrappers_cpp_test.cpp | 195 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 D | mutex_test.cpp | 86 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 D | condition_variable_test.cpp | 20 std::thread Threads[NumThreads]; in simpleWaitAndNotifyAll() local 28 Threads[I] = std::thread( in simpleWaitAndNotifyAll() 45 for (std::thread &T : Threads) in simpleWaitAndNotifyAll()
|
| H A D | secondary_test.cpp | 253 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 D | ThreadPool.cpp | 40 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 D | Parallel.cpp | 55 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 D | mutex_duration.pass.cpp | 42 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 D | mutex_time_point.pass.cpp | 42 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 D | malloc_stress_transfer_test.cpp | 26 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 D | sanitizer_stackdepot_test.cpp | 129 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 D | thread_contention.cpp | 48 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 D | mutex_test.cpp | 67 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 D | recoverable.cpp | 173 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 D | BackgroundRebuild.h | 50 unsigned Threads) in BackgroundIndexRebuilder() argument 51 : TUsBeforeFirstBuild(Threads), Target(Target), Source(Source) {} in BackgroundIndexRebuilder()
|
| /llvm-project/llvm/tools/dsymutil/ |
| H A D | dsymutil.cpp | 372 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 D | CMakeLists.txt | 11 find_package(Threads) 106 Threads::Threads
|