Home
last modified time | relevance | path

Searched refs:hardware_concurrency (Results 1 – 25 of 40) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/Debuginfod/
H A DHTTPServerTests.cpp94 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
118 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
137 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
169 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
205 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
222 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
259 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
291 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DThreadPool.cpp162 ThreadPool Pool(hardware_concurrency(2)); in TEST_F()
178 ThreadPool Pool(hardware_concurrency(2)); in TEST_F()
190 ThreadPool Pool(hardware_concurrency(2)); in TEST_F()
224 ThreadPoolStrategy S = hardware_concurrency(2); in TEST_F()
297 ThreadPoolStrategy S = hardware_concurrency(2); in TEST_F()
406 if (llvm::hardware_concurrency().compute_thread_count() < 4) in TEST_F()
H A DTaskQueueTest.cpp25 ThreadPool TP(hardware_concurrency(1)); in TEST_F()
69 ThreadPool TP(hardware_concurrency(1)); in TEST_F()
99 ThreadPool TP(hardware_concurrency(1)); in TEST_F()
H A DThreading.cpp25 hardware_concurrency().compute_thread_count()); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A Dthread.h108 static unsigned hardware_concurrency() { in hardware_concurrency() function
109 return std::thread::hardware_concurrency(); in hardware_concurrency()
198 static unsigned hardware_concurrency() {
199 return std::thread::hardware_concurrency();
244 static unsigned hardware_concurrency() { return 1; }; in hardware_concurrency() function
H A DThreading.h185 inline ThreadPoolStrategy hardware_concurrency(unsigned ThreadCount = 0) {
H A DThreadPool.h58 ThreadPool(ThreadPoolStrategy S = hardware_concurrency());
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/tests/
H A Dthread_contention.cpp50 if (std::thread::hardware_concurrency() < NumThreads) { in runThreadContentionTest()
51 NumThreads = std::thread::hardware_concurrency(); in runThreadContentionTest()
/llvm-project-15.0.7/llvm/lib/Support/
H A DThreading.cpp101 return llvm::hardware_concurrency(); in get_threadpool_strategy()
113 ThreadPoolStrategy S = llvm::hardware_concurrency(); in get_threadpool_strategy()
H A DParallel.cpp43 explicit ThreadPoolExecutor(ThreadPoolStrategy S = hardware_concurrency()) { in ThreadPoolExecutor()
/llvm-project-15.0.7/libcxx/src/
H A Dthread.cpp74 thread::hardware_concurrency() noexcept in hardware_concurrency() function in thread
95 # warning hardware_concurrency not yet implemented in hardware_concurrency()
/llvm-project-15.0.7/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.static/
H A Dhardware_concurrency.pass.cpp24 assert(std::thread::hardware_concurrency() > 0); in main()
/llvm-project-15.0.7/bolt/lib/Core/
H A DParallelUtilities.cpp29 cl::init(hardware_concurrency().compute_thread_count()),
109 llvm::hardware_concurrency(opts::ThreadCount)); in getThreadPool()
/llvm-project-15.0.7/libc/test/src/math/exhaustive/
H A Dexhaustive_test.cpp25 int n_threads = std::thread::hardware_concurrency(); in test_full_range()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DParallelCG.cpp55 ThreadPool CodegenThreadPool(hardware_concurrency(OSs.size())); in splitCodeGen()
/llvm-project-15.0.7/llvm/tools/llvm-debuginfod/
H A Dllvm-debuginfod.cpp77 ThreadPool Pool(hardware_concurrency(MaxConcurrency)); in main()
/llvm-project-15.0.7/clang/lib/Tooling/
H A DAllTUsExecution.cpp118 llvm::ThreadPool Pool(llvm::hardware_concurrency(ThreadCount)); in execute()
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DThreading.inc305 // Guard against std::thread::hardware_concurrency() returning 0.
306 if (unsigned Val = std::thread::hardware_concurrency())
/llvm-project-15.0.7/llvm/examples/SpeculativeJIT/
H A DSpeculativeJIT.cpp139 ThreadPool CompileThreads{llvm::hardware_concurrency(NumThreads)};
/llvm-project-15.0.7/libcxx/include/
H A Dthread44 static unsigned hardware_concurrency() noexcept;
274 static unsigned hardware_concurrency() _NOEXCEPT;
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerUtil.cpp220 unsigned N = std::thread::hardware_concurrency(); in NumberOfCpuCores()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DDelta.cpp280 std::make_unique<ThreadPool>(hardware_concurrency(NumJobs)); in runDeltaPass()
/llvm-project-15.0.7/clang-tools-extra/clang-doc/tool/
H A DClangDocMain.cpp271 llvm::ThreadPool Pool(llvm::hardware_concurrency(ExecutorConcurrency)); in main()
/llvm-project-15.0.7/llvm/tools/llvm-cov/
H A DCoverageExporterJson.cpp233 ThreadPoolStrategy S = hardware_concurrency(Options.NumThreads); in renderFiles()
/llvm-project-15.0.7/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.cpp91 std::max(2u, llvm::hardware_concurrency().compute_thread_count() / 4); in DependencyScanningFilesystemSharedCache()

12