Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DThreading.cpp50 unsigned llvm::hardware_concurrency() { return 1; } in hardware_concurrency() function in llvm
91 return std::thread::hardware_concurrency(); in heavyweight_hardware_concurrency()
95 unsigned llvm::hardware_concurrency() { in hardware_concurrency() function in llvm
102 if (unsigned Val = std::thread::hardware_concurrency()) in hardware_concurrency()
DThreadPool.cpp24 ThreadPool::ThreadPool() : ThreadPool(hardware_concurrency()) {} in ThreadPool()
DParallel.cpp42 explicit ThreadPoolExecutor(unsigned ThreadCount = hardware_concurrency()) { in ThreadPoolExecutor()
/external/llvm-project/llvm/unittests/Support/
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()
DThreading.cpp25 hardware_concurrency().compute_thread_count()); in TEST()
/external/llvm-project/compiler-rt/lib/gwp_asan/tests/
Dthread_contention.cpp50 if (std::thread::hardware_concurrency() < NumThreads) { in runThreadContentionTest()
51 NumThreads = std::thread::hardware_concurrency(); in runThreadContentionTest()
/external/gwp_asan/gwp_asan/tests/
Dthread_contention.cpp50 if (std::thread::hardware_concurrency() < NumThreads) { in runThreadContentionTest()
51 NumThreads = std::thread::hardware_concurrency(); in runThreadContentionTest()
/external/Reactive-Extensions/RxCpp/Rx/v2/test/operators/
Dgroup_by.cpp39 … auto total = rxcpp::observable<>::range(0, (2 * std::thread::hardware_concurrency()) - 1).
42 … static const int chunk = 100000000 / (2 * std::thread::hardware_concurrency()); in __anon39cb25110202()
48 [](work w) -> int {return w.index % std::thread::hardware_concurrency();}, in __anon39cb25110302()
118 … auto total = rxcpp::observable<>::range(0, (2 * std::thread::hardware_concurrency()) - 1).
121 … static const int chunk = 100000000 / (2 * std::thread::hardware_concurrency()); in __anon39cb25110a02()
/external/llvm-project/llvm/lib/Support/
DThreading.cpp138 return llvm::hardware_concurrency(); in get_threadpool_strategy()
150 ThreadPoolStrategy S = llvm::hardware_concurrency(); in get_threadpool_strategy()
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/schedulers/
Drx-eventloop.hpp77 auto remaining = std::max(std::thread::hardware_concurrency(), unsigned(4));
87 auto remaining = std::max(std::thread::hardware_concurrency(), unsigned(4)); in event_loop()
/external/llvm-project/libcxx/src/
Dthread.cpp73 thread::hardware_concurrency() _NOEXCEPT in hardware_concurrency() function in thread
94 # warning hardware_concurrency not yet implemented in hardware_concurrency()
/external/libcxx/src/
Dthread.cpp78 thread::hardware_concurrency() _NOEXCEPT in hardware_concurrency() function in thread
105 # warning hardware_concurrency not yet implemented in hardware_concurrency()
/external/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.static/
Dhardware_concurrency.pass.cpp23 assert(std::thread::hardware_concurrency() > 0); in main()
/external/llvm-project/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.static/
Dhardware_concurrency.pass.cpp24 assert(std::thread::hardware_concurrency() > 0); in main()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
Dthread.h45 static unsigned hardware_concurrency() { return 1; }; in hardware_concurrency() function
DThreading.h159 unsigned hardware_concurrency();
/external/llvm-project/llvm/include/llvm/Support/
Dthread.h45 static unsigned hardware_concurrency() { return 1; }; in hardware_concurrency() function
DThreadPool.h46 ThreadPool(ThreadPoolStrategy S = hardware_concurrency());
/external/llvm/include/llvm/Support/
Dthread.h60 static unsigned hardware_concurrency() { return 1; }; in hardware_concurrency() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
Dthread.h60 static unsigned hardware_concurrency() { return 1; } in hardware_concurrency() function
/external/angle/src/libANGLE/
DWorkerThread.cpp171 mMaxThreads = (maxThreads == 0xFFFFFFFF ? std::thread::hardware_concurrency() : maxThreads); in setMaxThreads()
333 new AsyncWorkerPool(std::thread::hardware_concurrency())); in Create()
/external/pthreadpool/bench/
Dlatency.cc8 const int max_threads = std::thread::hardware_concurrency(); in SetNumberOfThreads()
/external/llvm-project/llvm/lib/CodeGen/
DParallelCG.cpp56 ThreadPool CodegenThreadPool(hardware_concurrency(OSs.size())); in splitCodeGen()
/external/tensorflow/tensorflow/stream_executor/host/
Dhost_platform.cc39 return std::thread::hardware_concurrency(); in VisibleDeviceCount()
/external/openscreen/cast/standalone_sender/
Dstreaming_vp8_encoder.h62 std::min(std::max<int>(std::thread::hardware_concurrency(), 1), 8);

123