Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/lib/core/
Dthreadpool_test.cc28 static const int kNumThreads = 30; variable
31 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST()
38 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST()
63 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST()
86 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST()
94 volatile std::atomic<bool> threads_running[kNumThreads + 1]; in TEST()
105 ASSERT_LE(id, kNumThreads); in TEST()
123 ThreadPool pool(Env::Default(), "test", kNumThreads); in BM_Sequential()
148 ThreadPool pool(Env::Default(), "test", kNumThreads); in BM_Parallel()
/external/libchrome/base/threading/
Dthread_local_storage_unittest.cc102 const int kNumThreads = 5; in TEST() local
103 int values[kNumThreads]; in TEST()
104 ThreadLocalStorageRunner* thread_delegates[kNumThreads]; in TEST()
105 DelegateSimpleThread* threads[kNumThreads]; in TEST()
110 for (int index = 0; index < kNumThreads; index++) { in TEST()
119 for (int index = 0; index < kNumThreads; index++) { in TEST()
/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/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/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/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/lzma/CPP/7zip/Common/
DMethodProps.h61 int i = FindProp(NCoderPropID::kNumThreads); in Get_NumThreads()
170 AddProp32(NCoderPropID::kNumThreads, numThreads); in AddProp_NumThreads()
/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/platform/
Dfile_system.cc36 constexpr int kNumThreads = 8; variable
46 int num_threads = std::min(kNumThreads, last - first); in ForEach()
/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.cpp55 case NCoderPropID::kNumThreads: in SetLzma2Prop()
DPpmdEncoder.cpp87 case NCoderPropID::kNumThreads: break; in SetCoderProperties()
DLzmaEncoder.cpp99 SET_PROP_32(kNumThreads, numThreads) in SetLzmaProp()
/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.cpp34 SetMethodProp32(oneMethodInfo, NCoderPropID::kNumThreads, numThreads); in SetGlobalLevelAndThreads()
/external/libchrome/base/trace_event/
Dtrace_event_unittest.cc1794 const int kNumThreads = 4; in TEST_F() local
1796 Thread* threads[kNumThreads]; in TEST_F()
1797 PlatformThreadId thread_ids[kNumThreads]; in TEST_F()
1798 for (int i = 0; i < kNumThreads; i++) in TEST_F()
1805 WaitableEvent* task_complete_events[kNumThreads]; in TEST_F()
1806 for (int i = 0; i < kNumThreads; i++) { in TEST_F()
1816 for (int i = 0; i < kNumThreads; i++) { in TEST_F()
1821 for (int i = 0; i < kNumThreads; i++) { in TEST_F()
1844 for (int j = 0; j < kNumThreads; j++) { in TEST_F()
/external/lzma/CPP/7zip/
DICoder.h119 kNumThreads, enumerator
/external/libchrome/base/memory/
Dshared_memory_unittest.cc238 const int kNumThreads = 5; in TEST() local
248 int threadcounts[] = { 1, kNumThreads }; in TEST()
/external/tensorflow/tensorflow/core/kernels/
Dconv_ops_gpu_3.cu.cc913 constexpr int kNumThreads = 256; in RunSwapDimension1And2InTensor3() local
923 SwapDimension1And2InTensor3UsingTiles<T, kNumThreads, kTileSize, kTileSize, in RunSwapDimension1And2InTensor3()
925 <<<total_tiles_count, kNumThreads, 0, d.stream()>>>(input, input_dims, in RunSwapDimension1And2InTensor3()

12