Home
last modified time | relevance | path

Searched refs:ThreadPool (Results 1 – 25 of 144) sorted by relevance

123456

/external/llvm/lib/Support/
DThreadPool.cpp24 ThreadPool::ThreadPool() : ThreadPool(std::thread::hardware_concurrency()) {} in ThreadPool() function in ThreadPool
26 ThreadPool::ThreadPool(unsigned ThreadCount) in ThreadPool() function in ThreadPool
75 void ThreadPool::wait() { in wait()
85 std::shared_future<ThreadPool::VoidTy> ThreadPool::asyncImpl(TaskTy Task) { in asyncImpl()
103 ThreadPool::~ThreadPool() { in ~ThreadPool()
115 ThreadPool::ThreadPool() : ThreadPool(0) {} in ThreadPool() function in ThreadPool
118 ThreadPool::ThreadPool(unsigned ThreadCount) in ThreadPool() function in ThreadPool
126 void ThreadPool::wait() { in wait()
139 std::shared_future<ThreadPool::VoidTy> ThreadPool::asyncImpl(TaskTy Task) { in asyncImpl()
154 ThreadPool::~ThreadPool() { in ~ThreadPool()
/external/tensorflow/tensorflow/core/lib/core/
Dthreadpool.cc88 struct ThreadPool::Impl : Eigen::ThreadPoolTempl<EigenEnvironment> {
106 ThreadPool::ThreadPool(Env* env, const string& name, int num_threads) in ThreadPool() function in tensorflow::thread::ThreadPool
107 : ThreadPool(env, ThreadOptions(), name, num_threads, true) {} in ThreadPool()
109 ThreadPool::ThreadPool(Env* env, const ThreadOptions& thread_options, in ThreadPool() function in tensorflow::thread::ThreadPool
111 : ThreadPool(env, thread_options, name, num_threads, true) {} in ThreadPool()
113 ThreadPool::ThreadPool(Env* env, const ThreadOptions& thread_options, in ThreadPool() function in tensorflow::thread::ThreadPool
117 impl_.reset(new ThreadPool::Impl(env, thread_options, "tf_" + name, in ThreadPool()
121 ThreadPool::~ThreadPool() {} in ~ThreadPool()
123 void ThreadPool::Schedule(std::function<void()> fn) { in Schedule()
128 void ThreadPool::ParallelFor(int64 total, int64 cost_per_unit, in ParallelFor()
[all …]
Dthreadpool_test.cc30 TEST(ThreadPool, Empty) { in TEST() argument
33 ThreadPool pool(Env::Default(), "test", num_threads); in TEST()
37 TEST(ThreadPool, DoWork) { in TEST() argument
46 ThreadPool pool(Env::Default(), "test", num_threads); in TEST()
60 TEST(ThreadPool, ParallelFor) { in TEST() argument
67 ThreadPool pool(Env::Default(), "test", num_threads); in TEST()
83 TEST(ThreadPool, ParallelForWithWorkerId) { in TEST() argument
90 ThreadPool pool(Env::Default(), "test", num_threads); in TEST()
123 ThreadPool pool(Env::Default(), "test", kNumThreads); in BM_Sequential()
148 ThreadPool pool(Env::Default(), "test", kNumThreads); in BM_Parallel()
Dthreadpool.h28 class ThreadPool {
39 ThreadPool(Env* env, const ThreadOptions& thread_options, const string& name,
46 ThreadPool(Env* env, const string& name, int num_threads);
52 ThreadPool(Env* env, const ThreadOptions& thread_options, const string& name,
57 ~ThreadPool();
105 TF_DISALLOW_COPY_AND_ASSIGN(ThreadPool);
Dnotification_test.cc27 thread::ThreadPool* thread_pool = in TEST()
28 new thread::ThreadPool(Env::Default(), "test", 1); in TEST()
56 thread::ThreadPool* thread_pool = in TEST()
57 new thread::ThreadPool(Env::Default(), "test", num_closures); in TEST()
Dblocking_counter_test.cc38 thread::ThreadPool* thread_pool = in TEST()
39 new thread::ThreadPool(Env::Default(), "test", N); in TEST()
55 std::unique_ptr<thread::ThreadPool> thread_pool( in BM_BlockingCounter()
56 new thread::ThreadPool(Env::Default(), "test", num_threads)); in BM_BlockingCounter()
/external/libxcam/xcore/
Dthread_pool.cpp32 UserThread (const SmartPtr<ThreadPool> &pool, const char *name) in UserThread()
43 SmartPtr<ThreadPool> _pool;
70 SmartPtr<ThreadPool::UserData> data = _pool->_data_queue.pop (); in loop()
92 ThreadPool::dispatch (const SmartPtr<ThreadPool::UserData> &data) in dispatch()
102 ThreadPool::ThreadPool (const char *name) in ThreadPool() function in XCam::ThreadPool
114 ThreadPool::~ThreadPool () in ~ThreadPool()
122 ThreadPool::set_threads (uint32_t min, uint32_t max) in set_threads()
142 ThreadPool::is_running () in is_running()
149 ThreadPool::start () in start()
173 ThreadPool::stop () in stop()
[all …]
Dthread_pool.h32 class ThreadPool
50 explicit ThreadPool (const char *name);
51 virtual ~ThreadPool ();
67 XCAM_DEAD_COPY (ThreadPool);
/external/eigen/unsupported/Eigen/CXX11/
DThreadPool17 /** \defgroup CXX11_ThreadPool_Module C++11 ThreadPool Module
26 * #include <Eigen/CXX11/ThreadPool>
51 #include "src/ThreadPool/ThreadLocal.h"
52 #include "src/ThreadPool/ThreadYield.h"
53 #include "src/ThreadPool/EventCount.h"
54 #include "src/ThreadPool/RunQueue.h"
55 #include "src/ThreadPool/ThreadPoolInterface.h"
56 #include "src/ThreadPool/ThreadEnvironment.h"
57 #include "src/ThreadPool/SimpleThreadPool.h"
58 #include "src/ThreadPool/NonBlockingThreadPool.h"
/external/tensorflow/tensorflow/core/common_runtime/
Dprocess_util.cc30 static thread::ThreadPool* InitComputePool(const SessionOptions& options) { in InitComputePool()
38 return new thread::ThreadPool(Env::Default(), "Compute", in InitComputePool()
44 thread::ThreadPool* ComputePool(const SessionOptions& options) { in ComputePool()
45 static thread::ThreadPool* compute_pool = InitComputePool(options); in ComputePool()
Deigen_thread_pool.h26 explicit EigenThreadPoolWrapper(thread::ThreadPool* pool) : pool_(pool) {} in EigenThreadPoolWrapper()
36 thread::ThreadPool* pool_ = nullptr;
/external/tensorflow/tensorflow/compiler/xla/
Dexecutable_run_options.h32 class ThreadPool; variable
70 tensorflow::thread::ThreadPool* inter_op_thread_pool);
71 tensorflow::thread::ThreadPool* inter_op_thread_pool() const;
92 tensorflow::thread::ThreadPool* inter_op_thread_pool_ = nullptr;
/external/llvm/include/llvm/Support/
DThreadPool.h51 class ThreadPool {
67 ThreadPool();
70 ThreadPool(unsigned ThreadCount);
73 ~ThreadPool();
/external/llvm/unittests/Support/
DThreadPool.cpp93 ThreadPool Pool; in TEST_F()
113 ThreadPool Pool; in TEST_F()
123 ThreadPool Pool; in TEST_F()
138 ThreadPool Pool{2}; in TEST_F()
157 ThreadPool Pool; in TEST_F()
/external/tensorflow/tensorflow/core/util/
Dwork_sharder_test.cc31 thread::ThreadPool* threads) { in RunSharding()
55 thread::ThreadPool threads(Env::Default(), "test", 16); in TEST()
66 thread::ThreadPool threads(Env::Default(), "test", 3); in TEST()
80 thread::ThreadPool threads(Env::Default(), "test", 16); in BM_Sharding()
/external/tensorflow/tensorflow/core/framework/
Ddevice_base.h54 class ThreadPool; variable
111 thread::ThreadPool* workers = nullptr;
150 virtual thread::ThreadPool* tensorflow_device_thread_pool() { in tensorflow_device_thread_pool()
226 void set_tensorflow_device_thread_pool(thread::ThreadPool* thread_pool) { in set_tensorflow_device_thread_pool()
234 thread::ThreadPool* device_thread_pool_ = nullptr;
/external/eigen/unsupported/test/
Dcxx11_tensor_thread_pool.cpp29 Eigen::ThreadPool tp(internal::random<int>(3, 11)); in test_multithread_elementwise()
52 Eigen::ThreadPool tp(internal::random<int>(3, 11)); in test_multithread_compound_assignment()
85 Eigen::ThreadPool tp(4); in test_multithread_contraction()
126 Eigen::ThreadPool tp(12); in test_contraction_corner_cases()
216 Eigen::ThreadPool tp(internal::random<int>(2, 11)); in test_multithread_contraction_agrees_with_singlethread()
255 Eigen::ThreadPool tp(internal::random<int>(2, 11)); in test_full_contraction()
275 ThreadPool thread_pool(num_threads); in test_multithreaded_reductions()
299 Eigen::ThreadPool tp(num_threads); in test_memcpy()
316 Eigen::ThreadPool tp(2); in test_multithread_random()
329 ThreadPool threads(num_threads); in test_multithread_shuffle()
/external/icu/icu4c/source/test/intltest/
Dsimplethread.h65 class ThreadPool : public ThreadPoolBase {
69 ThreadPool(TestClass *test, int howMany, void (TestClass::*runFnPtr)(int32_t threadNumber)) : in ThreadPool() function
71 virtual ~ThreadPool() {}; in ~ThreadPool()
/external/tensorflow/tensorflow/compiler/xla/service/
Dservice_executable_run_options.h38 tensorflow::thread::ThreadPool* xla_intra_op_thread_pool = nullptr)
62 tensorflow::thread::ThreadPool* xla_intra_op_thread_pool() const { in xla_intra_op_thread_pool()
69 tensorflow::thread::ThreadPool* xla_intra_op_thread_pool_;
Dbackend.cc67 : pool(new tensorflow::thread::ThreadPool(tensorflow::Env::Default(), in EigenThreadPoolWrapper()
73 std::unique_ptr<tensorflow::thread::ThreadPool> pool;
145 inter_op_thread_pool_.reset(new tensorflow::thread::ThreadPool( in Backend()
162 tensorflow::thread::ThreadPool* Backend::inter_op_thread_pool() const { in inter_op_thread_pool()
174 tensorflow::thread::ThreadPool* Backend::eigen_intra_op_thread_pool() const { in eigen_intra_op_thread_pool()
/external/libxcam/modules/soft/
Dsoft_worker.h31 class ThreadPool; variable
67 bool set_threads (const SmartPtr<ThreadPool> &threads);
93 SmartPtr<ThreadPool> _threads;
Dsoft_handler.h32 class ThreadPool; variable
59 bool set_threads (const SmartPtr<ThreadPool> &pool);
87 SmartPtr<ThreadPool> _threads;
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/learner/common/partitioners/
Dexample_partitioner.h36 thread::ThreadPool* const thread_pool,
45 thread::ThreadPool* const thread_pool,
/external/tensorflow/tensorflow/core/distributed_runtime/
Dworker_env.h25 class ThreadPool; variable
61 thread::ThreadPool* compute_pool = nullptr;
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/optimized/
Dmultithreaded_conv.h40 explicit EigenThreadPoolWrapper(Eigen::ThreadPool* pool) : pool_(pool) {} in EigenThreadPoolWrapper()
50 Eigen::ThreadPool* pool_ = nullptr;
59 static Eigen::ThreadPool* tp = new Eigen::ThreadPool(thread_count); in GetThreadPoolDevice()

123456