Home
last modified time | relevance | path

Searched refs:NUM_THREADS (Results 1 – 25 of 27) sorted by relevance

12

/external/mesa3d/src/gallium/tests/unit/
Dpipe_barrier_test.c46 #define NUM_THREADS 10 macro
50 static thrd_t threads[NUM_THREADS];
52 static int thread_ids[NUM_THREADS];
84 CHECK(p_atomic_read(&waiting) == NUM_THREADS); in thread_function()
113 util_barrier_init(&barrier, NUM_THREADS); in main()
115 for (i = 0; i < NUM_THREADS; i++) { in main()
120 for (i = 0; i < NUM_THREADS; i++ ) { in main()
124 CHECK(p_atomic_read(&proceeded) == NUM_THREADS); in main()
/external/mesa3d/src/intel/vulkan/tests/
Dblock_pool_no_free.c28 #define NUM_THREADS 16 macro
38 } jobs[NUM_THREADS];
78 unsigned next[NUM_THREADS]; in validate_monotonic()
86 for (unsigned i = 0; i < NUM_THREADS; i++) { in validate_monotonic()
121 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_test()
127 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test()
131 uint32_t *block_ptrs[NUM_THREADS]; in run_test()
132 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test()
137 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test()
Dstate_pool_no_free.c28 #define NUM_THREADS 16 macro
37 } jobs[NUM_THREADS];
66 pthread_barrier_init(&barrier, NULL, NUM_THREADS); in run_test()
68 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_test()
74 for (unsigned i = 0; i < NUM_THREADS; i++) in run_test()
78 unsigned next[NUM_THREADS]; in run_test()
86 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_test()
Dstate_pool_free_list_only.c28 #define NUM_THREADS 8 macro
52 struct anv_state states[NUM_THREADS * STATES_PER_THREAD]; in main()
53 for (unsigned i = 0; i < NUM_THREADS * STATES_PER_THREAD; i++) { in main()
58 for (unsigned i = 0; i < NUM_THREADS * STATES_PER_THREAD; i++) in main()
Dstate_pool_test_helper.h30 } jobs[NUM_THREADS];
61 pthread_barrier_init(&barrier, NULL, NUM_THREADS); in run_state_pool_test()
63 for (unsigned i = 0; i < NUM_THREADS; i++) { in run_state_pool_test()
69 for (unsigned i = 0; i < NUM_THREADS; i++) in run_state_pool_test()
Dstate_pool.c28 #define NUM_THREADS 8 macro
/external/libevent/test/
Dregress_thread.c93 #define NUM_THREADS 100 macro
133 if (count >= NUM_THREADS * NUM_ITERATIONS) in basic_thread()
169 THREAD_T threads[NUM_THREADS]; in thread_basic()
228 for (i = 0; i < NUM_THREADS; ++i) in thread_basic()
238 for (i = 0; i < NUM_THREADS; ++i) in thread_basic()
243 tt_int_op(count, ==, NUM_THREADS * NUM_ITERATIONS); in thread_basic()
257 #undef NUM_THREADS
258 #define NUM_THREADS 10 macro
293 struct alerted_record alerted[NUM_THREADS]; in thread_conditions_simple()
294 THREAD_T threads[NUM_THREADS]; in thread_conditions_simple()
[all …]
/external/stressapptest/src/
Dfindmask.c50 #define NUM_THREADS 128 // keep this a power of two macro
62 for (mask = num; mask < (1ULL << (NUM_BITS + 1)); mask += NUM_THREADS) { in thread_func()
129 pthread_t threads[NUM_THREADS]; in main()
133 for (i = 0; i < NUM_THREADS; i++) in main()
136 for (i = 0; i < NUM_THREADS; i++) in main()
/external/compiler-rt/test/asan/TestCases/Windows/
Dthread_stress.cc15 const int NUM_THREADS = 8; in main() local
16 HANDLE thr[NUM_THREADS]; in main()
17 for (int i = 0; i < NUM_THREADS; ++i) { in main()
22 for (int i = 0; i < NUM_THREADS; ++i) { in main()
/external/ltp/testcases/kernel/mem/mtest07/
Dmallocstress.c81 #define NUM_THREADS 60 macro
210 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc()
216 TST_CHECKPOINT_WAKE2(0, NUM_THREADS); in stress_malloc()
219 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc()
234 thread_id = SAFE_MALLOC(sizeof(pthread_t) * NUM_THREADS); in setup()
/external/curl/docs/examples/
Dthreaded-shared-conn.c47 #define NUM_THREADS 67 macro
118 pthread_t tid[NUM_THREADS]; in main()
122 struct initurl url[NUM_THREADS]; in main()
134 for(i = 0; i< NUM_THREADS; i++) { in main()
146 for(i = 0; i< NUM_THREADS; i++) { in main()
/external/curl/tests/libtest/
Dlib1541.c33 #define NUM_THREADS 67 macro
105 pthread_t tid[NUM_THREADS]; in test()
109 struct initurl url[NUM_THREADS]; in test()
121 for(i = 0; i< NUM_THREADS; i++) { in test()
133 for(i = 0; i< NUM_THREADS; i++) { in test()
/external/grpc-grpc/test/core/gprpp/
Dthd_test.cc32 #define NUM_THREADS 100 macro
55 grpc_core::Thread thds[NUM_THREADS]; in test1()
59 t.n = NUM_THREADS; in test1()
80 grpc_core::Thread thds[NUM_THREADS]; in test2()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/
D3-1.c24 #define NUM_THREADS 5 macro
34 pthread_t new_threads[NUM_THREADS]; in main()
46 for (i = 0; i < NUM_THREADS; i++) { in main()
/external/python/cpython3/Lib/test/
Dfork_wait.py19 NUM_THREADS = 4 variable
59 for i in range(NUM_THREADS):
66 while len(self.alive) < NUM_THREADS:
72 self.assertEqual(a, list(range(NUM_THREADS)))
Dtest_threadedtempfile.py16 NUM_THREADS = 20 variable
49 threads = [TempFileGreedy() for i in range(NUM_THREADS)]
59 self.assertEqual(ok, NUM_THREADS * FILES_PER_THREAD)
/external/python/cpython2/Lib/test/
Dtest_threadedtempfile.py16 NUM_THREADS = 20 variable
49 threads = [TempFileGreedy() for i in range(NUM_THREADS)]
59 self.assertEqual(ok, NUM_THREADS * FILES_PER_THREAD)
Dfork_wait.py22 NUM_THREADS = 4 variable
62 for i in range(NUM_THREADS):
71 self.assertEqual(a, range(NUM_THREADS))
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DExecutionListBenchmark.java49 private static final int NUM_THREADS = 10; // make a param? field in ExecutionListBenchmark
167 executorService = new ThreadPoolExecutor(NUM_THREADS,
168 NUM_THREADS,
174 for (int i = 0; i < NUM_THREADS * 10; i++) {
242 listenerLatch = new CountDownLatch(numListeners * NUM_THREADS);
243 for (int j = 0; j < NUM_THREADS; j++) {
264 listenerLatch = new CountDownLatch(numListeners * NUM_THREADS);
266 for (int j = 0; j < NUM_THREADS; j++) {
/external/grpc-grpc/test/core/surface/
Dconcurrent_connectivity_test.cc43 #define NUM_THREADS 100 macro
178 grpc_core::Thread threads[NUM_THREADS]; in run_concurrent_connectivity_test()
202 grpc_core::Thread threads[NUM_THREADS]; in run_concurrent_connectivity_test()
228 grpc_core::Thread threads[NUM_THREADS]; in run_concurrent_connectivity_test()
284 grpc_core::Thread threads[NUM_THREADS]; in run_concurrent_watches_with_short_timeouts_test()
/external/python/cpython2/Lib/test/crashers/
Dwarnings_del_crasher.py16 NUM_THREADS = 10 variable
26 for i in range(NUM_THREADS):
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D5-1.c24 #define NUM_THREADS 5 macro
39 for (i = 1; i < NUM_THREADS + 1; i++) { in main()
/external/grpc-grpc/test/core/gpr/
Dtls_test.cc32 #define NUM_THREADS 100 macro
51 grpc_core::Thread threads[NUM_THREADS]; in main()
/external/ltp/testcases/realtime/func/pi-tests/
Dsbrk_mutex.c51 #define NUM_THREADS 50 macro
135 for (t = 0; t < NUM_THREADS; t++) { in main()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DTFLiteObjectDetectionAPIModel.java54 private static final int NUM_THREADS = 4; field in TFLiteObjectDetectionAPIModel
138 d.tfLite.setNumThreads(NUM_THREADS); in create()

12