Home
last modified time | relevance | path

Searched refs:kNumThreads (Results 1 – 25 of 35) sorted by relevance

12

/external/tensorflow/tensorflow/core/lib/core/
Dthreadpool_test.cc29 static const int kNumThreads = 30; variable
32 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST()
40 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST()
129 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST()
155 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST()
163 volatile std::atomic<bool> threads_running[kNumThreads + 1]; in TEST()
174 ASSERT_LE(id, kNumThreads); in TEST()
192 ThreadPool pool(Env::Default(), "test", kNumThreads); in BM_Sequential()
217 ThreadPool pool(Env::Default(), "test", kNumThreads); in BM_Parallel()
240 ThreadPool pool(Env::Default(), "test", kNumThreads); in BM_ParallelFor()
/external/compiler-rt/test/tsan/Darwin/
Dgcd-once.mm8 static const long kNumThreads = 4;
40 barrier_init(&barrier, kNumThreads);
42 pthread_t t[kNumThreads];
43 for (int i = 0; i < kNumThreads; i++) {
46 for (int i = 0; i < kNumThreads; i++) {
/external/webrtc/webrtc/base/
Dcriticalsection_unittest.cc26 const int kNumThreads = 16; variable
201 for (int i = 0; i < kNumThreads; ++i) { in StartThreads()
250 runner.SetExpectedThreadCount(kNumThreads); in TEST()
254 EXPECT_EQ(kOperationsToRun * kNumThreads, runner.shared_value()); in TEST()
260 kOperationsToRun * kNumThreads); in TEST()
263 runner.SetExpectedThreadCount(kNumThreads); in TEST()
275 runner.SetExpectedThreadCount(kNumThreads); in TEST()
287 runner.SetExpectedThreadCount(kNumThreads); in TEST()
299 runner.SetExpectedThreadCount(kNumThreads); in TEST()
/external/compiler-rt/test/asan/TestCases/Posix/
Dgc-test.cc14 static const int kNumThreads = 2; variable
48 pthread_t t[kNumThreads]; in main()
49 for (int i = 0; i < kNumThreads; i++) in main()
51 for (int i = 0; i < kNumThreads; i++) in main()
Dcoverage-caller-callee.cc69 const int kNumThreads = 16; in main() local
70 pthread_t t[kNumThreads]; in main()
71 for (int i = 0; i < kNumThreads; i++) in main()
73 for (int i = 0; i < kNumThreads; i++) in main()
/external/libchrome/base/threading/
Dthread_local_storage_unittest.cc225 const int kNumThreads = 5; in TEST() local
226 int values[kNumThreads]; in TEST()
227 ThreadLocalStorageRunner* thread_delegates[kNumThreads]; in TEST()
228 DelegateSimpleThread* threads[kNumThreads]; in TEST()
231 for (int index = 0; index < kNumThreads; index++) { in TEST()
240 for (int index = 0; index < kNumThreads; index++) { in TEST()
/external/compiler-rt/lib/asan/tests/
Dasan_noinst_test.cc99 const int kNumThreads = 4; in TEST() local
101 pthread_t t[kNumThreads]; in TEST()
102 for (int i = 0; i < kNumThreads; i++) { in TEST()
106 for (int i = 0; i < kNumThreads; i++) { in TEST()
201 const int kNumThreads = 4; in TEST() local
202 pthread_t t[kNumThreads]; in TEST()
203 for (int i = 0; i < kNumThreads; i++) { in TEST()
206 for (int i = 0; i < kNumThreads; i++) { in TEST()
Dasan_test.cc343 const size_t kNumThreads = in TEST() local
345 pthread_t t[kNumThreads]; in TEST()
346 for (size_t i = 0; i < kNumThreads; i++) { in TEST()
349 for (size_t i = 0; i < kNumThreads; i++) { in TEST()
1083 const int kNumThreads = 20; in TEST() local
1084 pthread_t t[kNumThreads]; in TEST()
1085 for (int i = 0; i < kNumThreads; i++) { in TEST()
1088 for (int i = 0; i < kNumThreads; i++) { in TEST()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtraceme_recorder_test.cc93 constexpr static int kNumThreads = 4; in TEST() local
98 thread::ThreadPool pool(Env::Default(), "testpool", kNumThreads); in TEST()
100 for (int i = 0; i < kNumThreads; i++) { in TEST()
143 } thread_state[kNumThreads]; in TEST()
154 while (thread_count.load(std::memory_order_relaxed) < kNumThreads) { in TEST()
/external/tensorflow/tensorflow/core/common_runtime/
Dsingle_threaded_cpu_device.cc31 static constexpr int kNumThreads = 1; variable
35 new thread::ThreadPool(Env::Default(), "graph_runner", kNumThreads); in GraphRunnerThreadPool()
48 eigen_worker_threads_.num_threads = kNumThreads; in SingleThreadedCpuDevice()
/external/tensorflow/tensorflow/contrib/ffmpeg/default/
Dffmpeg_lib_utility_test.cc37 const int32 kNumThreads = 10; in TEST() local
41 thread::ThreadPool pool(environment, "test", kNumThreads); in TEST()
/external/gemmlowp/test/
Dbenchmark_all_sizes.cc38 const int kNumThreads = BENCHMARK_NUM_THREADS; variable
40 const int kNumThreads = 1; variable
137 gemm_context.set_max_num_threads(kNumThreads); in benchmark_8bit()
179 gemm_context.set_max_num_threads(kNumThreads); in benchmark_8bit_to_32bit()
349 printf("Using %d thread(s)\n", kNumThreads); in main()
/external/libchrome/base/task_scheduler/
Dtracked_ref_unittest.cc80 constexpr int kNumThreads = 16; in TEST() local
82 for (int i = 0; i < kNumThreads; ++i) { in TEST()
/external/compiler-rt/test/tsan/
Ddeadlock_detector_stress_test.cc584 const int kNumThreads = 4; in RunThreads() local
585 pthread_t t[kNumThreads]; in RunThreads()
586 CB cb[kNumThreads] = {{f1, this}, {f2, this}, {f3, this}, {f4, this}}; in RunThreads()
587 for (int i = 0; i < kNumThreads && cb[i].f; i++) in RunThreads()
589 for (int i = 0; i < kNumThreads && cb[i].f; i++) in RunThreads()
/external/tensorflow/tensorflow/core/platform/
Dfile_system_helper.cc35 constexpr int kNumThreads = 8; variable
45 int num_threads = std::min(kNumThreads, last - first); in ForEach()
/external/grpc-grpc/test/cpp/end2end/
Dthread_stress_test.cc45 const int kNumThreads = 100; // Number of threads variable
311 threads.reserve(kNumThreads); in TYPED_TEST()
312 for (int i = 0; i < kNumThreads; ++i) { in TYPED_TEST()
316 for (int i = 0; i < kNumThreads; ++i) { in TYPED_TEST()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_test.cc851 static const int kNumThreads = 4; in TEST() local
852 pthread_t t[kNumThreads]; in TEST()
853 TestByteMapParam p[kNumThreads]; in TEST()
854 for (int i = 0; i < kNumThreads; i++) { in TEST()
857 p[i].num_shards = kNumThreads; in TEST()
860 for (int i = 0; i < kNumThreads; i++) { in TEST()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_event_mgr.cc29 static const int kNumThreads = 2; variable
103 threadpool_(Env::Default(), "GPU_Event_Manager", kNumThreads) { in EventMgr()
/external/lzma/CPP/7zip/Common/
DMethodProps.h66 int i = FindProp(NCoderPropID::kNumThreads); in Get_NumThreads()
234 AddProp32(NCoderPropID::kNumThreads, numThreads); in AddProp_NumThreads()
/external/v8/tools/profviz/
Dcomposer.js55 var kNumThreads = 2; // Number of threads.
63 assert(thread_id >= 0 && thread_id < kNumThreads, "invalid thread id");
141 for (var i = 0; i < kNumThreads; i++) {
/external/lzma/CPP/7zip/Compress/
DDeltaFilter.cpp72 case NCoderPropID::kNumThreads: break; in SetCoderProperties()
DLzma2Encoder.cpp51 case NCoderPropID::kNumThreads: in SetLzma2Prop()
DPpmdEncoder.cpp87 case NCoderPropID::kNumThreads: break; in SetCoderProperties()
/external/protobuf/objectivec/Tests/
DGPBConcurrencyTests.m36 static const int kNumThreads = 100;
51 for (NSUInteger i = 0; i < kNumThreads; i++) {
/external/lzma/CPP/7zip/Archive/Common/
DHandlerOut.cpp107 SetMethodProp32(oneMethodInfo, NCoderPropID::kNumThreads, numThreads); in SetMethodThreadsTo()

12