Home
last modified time | relevance | path

Searched refs:THREADS (Results 1 – 25 of 56) sorted by relevance

123

/external/ltp/lib/newlib_tests/
Dtest15.c27 #define THREADS 64 macro
82 if (i < THREADS - 1) { in mem_spam()
96 pthread_t threads[THREADS + 1]; in do_test()
99 m = SAFE_MMAP(NULL, sizeof(*m) * THREADS, in do_test()
103 seq_n = &((m + THREADS / 2)->seq_n); in do_test()
105 pthread_create(&threads[THREADS], NULL, mem_spam, NULL); in do_test()
106 for (i = THREADS - 1; i >= 0; i--) in do_test()
109 for (i = 0; i < THREADS; i++) { in do_test()
114 pthread_join(threads[THREADS], NULL); in do_test()
117 for (i = 0; i < THREADS; i++) { in do_test()
[all …]
Dtest09.c13 #define THREADS 64 macro
32 pthread_t threads[THREADS]; in do_test()
34 for (i = 0; i < THREADS; i++) in do_test()
37 for (i = 0; i < THREADS; i++) { in do_test()
42 if (atomic == THREADS * ITERATIONS) in do_test()
Dtest08.c12 #define THREADS 10 macro
18 pthread_barrier_init(&barrier, NULL, THREADS); in setup()
48 pthread_t threads[THREADS]; in do_test()
50 for (i = 0; i < THREADS; i++) in do_test()
53 for (i = 0; i < THREADS; i++) { in do_test()
/external/llvm-project/mlir/test/Conversion/SCFToGPU/
Dno_blocks_no_threads.mlir1 …fine-for-to-gpu="gpu-block-dims=0 gpu-thread-dims=1" %s | FileCheck --check-prefix=CHECK-THREADS %s
4 // CHECK-THREADS-LABEL: @one_d_loop
8 // CHECK-THREADS-NEXT: %{{.*}} = constant 0 : index
9 // CHECK-THREADS-NEXT: %{{.*}} = constant 42 : index
10 // CHECK-THREADS-NEXT: %[[BOUND:.*]] = subi %{{.*}}, %{{.*}} : index
11 // CHECK-THREADS-NEXT: %{{.*}} = constant 1 : index
12 // CHECK-THREADS-NEXT: %[[ONE:.*]] = constant 1 : index
20 …// CHECK-THREADS-NEXT: gpu.launch blocks(%[[B0:.*]], %[[B1:.*]], %[[B2:.*]]) in (%{{.*}} = %[[ONE]…
23 // CHECK-THREADS-NEXT: %[[INDEX:.*]] = addi %{{.*}}, %[[T0]]
24 // CHECK-THREADS-NEXT: load %{{.*}}[%[[INDEX]]]
[all …]
/external/eigen/bench/tensors/
Dtensor_benchmarks_cpu.cc12 #define BM_FuncCPU(FUNC, THREADS) \ argument
13 static void BM_##FUNC##_##THREADS##T(int iters, int N) { \
15 CREATE_THREAD_POOL(THREADS); \
19 BENCHMARK_RANGE(BM_##FUNC##_##THREADS##T, 10, 5000);
83 #define BM_FuncWithInputDimsCPU(FUNC, D1, D2, D3, THREADS) \ argument
84 static void BM_##FUNC##_##D1##x##D2##x##D3##_##THREADS##T(int iters, int N) { \
86 if (THREADS == 1) { \
91 CREATE_THREAD_POOL(THREADS); \
96 BENCHMARK_RANGE(BM_##FUNC##_##D1##x##D2##x##D3##_##THREADS##T, 10, 5000);
137 #define BM_FuncWithKernelDimsCPU(FUNC, DIM1, DIM2, THREADS) \ argument
[all …]
/external/rust/crates/crossbeam-epoch/benches/
Dflush.rs13 const THREADS: usize = 16; in single_flush() constant
15 let start = Barrier::new(THREADS + 1); in single_flush()
16 let end = Barrier::new(THREADS + 1); in single_flush()
19 for _ in 0..THREADS { in single_flush()
36 const THREADS: usize = 16; in multi_flush() constant
41 for _ in 0..THREADS { in multi_flush()
Ddefer.rs30 const THREADS: usize = 16; in multi_alloc_defer_free() constant
35 for _ in 0..THREADS { in multi_alloc_defer_free()
53 const THREADS: usize = 16; in multi_defer() constant
58 for _ in 0..THREADS { in multi_defer()
Dpin.rs16 const THREADS: usize = 16; in multi_pin() constant
21 for _ in 0..THREADS { in multi_pin()
/external/rust/crates/crossbeam-utils/benches/
Datomic_cell.rs42 const THREADS: usize = 2; in concurrent_load_u8() constant
45 let start = Barrier::new(THREADS + 1); in concurrent_load_u8()
46 let end = Barrier::new(THREADS + 1); in concurrent_load_u8()
52 for _ in 0..THREADS { in concurrent_load_u8()
116 const THREADS: usize = 2; in concurrent_load_usize() constant
119 let start = Barrier::new(THREADS + 1); in concurrent_load_usize()
120 let end = Barrier::new(THREADS + 1); in concurrent_load_usize()
126 for _ in 0..THREADS { in concurrent_load_usize()
/external/rust/crates/crossbeam-utils/tests/
Dwait_group.rs7 const THREADS: usize = 10; constant
14 for _ in 0..THREADS { in wait()
33 for _ in 0..THREADS { in wait()
43 for _ in 0..THREADS { in wait_and_drop()
61 for _ in 0..THREADS { in wait_and_drop()
Dthread.rs8 const THREADS: usize = 10; constant
37 for _ in 0..THREADS { in counter()
45 assert_eq!(THREADS, counter.load(Ordering::Relaxed)); in counter()
52 for i in 0..THREADS { in counter_builder()
65 assert_eq!(THREADS, counter.load(Ordering::Relaxed)); in counter_builder()
79 for _ in 0..THREADS { in counter_panic()
86 assert_eq!(THREADS, counter.load(Ordering::Relaxed)); in counter_panic()
/external/rust/crates/crossbeam-deque/tests/
Dinjector.rs77 const THREADS: usize = 4; in mpmc() constant
83 for _ in 0..THREADS { in mpmc()
91 for _ in 0..THREADS { in mpmc()
107 assert_eq!(c.load(SeqCst), THREADS); in mpmc()
113 const THREADS: usize = 8; in stampede() constant
124 for _ in 0..THREADS { in stampede()
154 const THREADS: usize = 8; in stress() constant
162 for _ in 0..THREADS { in stress()
213 const THREADS: usize = 8; in no_starvation() constant
221 for _ in 0..THREADS { in no_starvation()
[all …]
Dfifo.rs102 const THREADS: usize = 8; in stampede() constant
113 for _ in 0..THREADS { in stampede()
143 const THREADS: usize = 8; in stress() constant
151 for _ in 0..THREADS { in stress()
202 const THREADS: usize = 8; in no_starvation() constant
210 for _ in 0..THREADS { in no_starvation()
261 const THREADS: usize = 8; in destructors() constant
282 for _ in 0..THREADS { in destructors()
Dlifo.rs102 const THREADS: usize = 8; in stampede() constant
113 for _ in 0..THREADS { in stampede()
143 const THREADS: usize = 8; in stress() constant
151 for _ in 0..THREADS { in stress()
202 const THREADS: usize = 8; in no_starvation() constant
210 for _ in 0..THREADS { in no_starvation()
261 const THREADS: usize = 8; in destructors() constant
282 for _ in 0..THREADS { in destructors()
/external/linux-kselftest/tools/testing/selftests/powerpc/dscr/
Ddscr_default_test.c16 static unsigned long result[THREADS];
62 pthread_t threads[THREADS]; in dscr_default()
63 unsigned long i, *status[THREADS]; in dscr_default()
73 for (i = 0; i < THREADS; i++) { in dscr_default()
102 for (i = 0; i < THREADS; i++) { in dscr_default()
/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_threads.c53 #define THREADS 10 /* FIXME should be 500 instead of 10 */ macro
139 int pth[THREADS]; in main()
140 pthread_t thread[THREADS]; in main()
173 for (cnt = 0; cnt < THREADS; cnt++) { in main()
183 for (cnt = 0; cnt < THREADS ; cnt++) { in main()
/external/icu/icu4j/perf-tests/
Ddecimalformatperf.pl33 my $THREADS; # number of threads (input from command-line args)
52 $THREADS = $arg;
61 my $threads = ($THREADS > 1) ? "($THREADS threads)" : "";
279 …sspath classes $TESTCLASS $method $n -p $passes -L @$pat[0] \"@$pat[1]\" \"@$pat[2]\" -r $THREADS";
Ddateformatperf.pl37 my $THREADS; # number of threads (input from command-line args)
56 $THREADS = $arg;
65 my $threads = ($THREADS > 1) ? "($THREADS threads)" : "";
284 …sspath classes $TESTCLASS $method $n -p $passes -L @$pat[0] \"@$pat[1]\" \"@$pat[2]\" -r $THREADS";
/external/igt-gpu-tools/lib/
Dmedia_fill.c126 #define THREADS 1 macro
158 gen7_emit_vfe_state(batch, THREADS, MEDIA_URB_ENTRIES, MEDIA_URB_SIZE, in gen7_media_fillfunc()
202 gen8_emit_vfe_state(batch, THREADS, MEDIA_URB_ENTRIES, MEDIA_URB_SIZE, in gen8_media_fillfunc()
251 gen8_emit_vfe_state(batch, THREADS, MEDIA_URB_ENTRIES, MEDIA_URB_SIZE, in __gen9_media_fillfunc()
320 gen8_emit_vfe_state(batch, THREADS, MEDIA_URB_ENTRIES, MEDIA_URB_SIZE, in __gen11_media_vme_func()
Dgpgpu_fill.c112 #define THREADS 1 macro
152 gen7_emit_vfe_state(batch, THREADS, GEN7_GPGPU_URB_ENTRIES, in gen7_gpgpu_fillfunc()
201 gen8_emit_vfe_state(batch, THREADS, GEN8_GPGPU_URB_ENTRIES, in gen8_gpgpu_fillfunc()
251 gen8_emit_vfe_state(batch, THREADS, GEN8_GPGPU_URB_ENTRIES, in __gen9_gpgpu_fillfunc()
Dmedia_spin.c71 #define THREADS 0 macro
104 gen8_emit_vfe_state(batch, THREADS, MEDIA_URB_ENTRIES, in gen8_media_spinfunc()
149 gen8_emit_vfe_state(batch, THREADS, MEDIA_URB_ENTRIES, in gen9_media_spinfunc()
/external/rust/crates/crossbeam-channel/tests/
Dafter.rs185 const THREADS: usize = 4; in select() constant
195 for _ in 0..THREADS { in select()
229 const THREADS: usize = 4; in ready() constant
239 for _ in 0..THREADS { in ready()
273 const THREADS: usize = 10; in stress_clone() constant
280 for _ in 0..THREADS { in stress_clone()
/external/crosvm/cros_async/src/sync/
Dspin.rs173 const THREADS: usize = 23; in high_contention() constant
176 let mut threads = Vec::with_capacity(THREADS); in high_contention()
179 for _ in 0..THREADS { in high_contention()
192 assert_eq!(*sl.lock(), THREADS * ITERATIONS); in high_contention()
/external/libchromeos-rs/src/sync/
Dspin.rs167 const THREADS: usize = 23; in high_contention() constant
170 let mut threads = Vec::with_capacity(THREADS); in high_contention()
173 for _ in 0..THREADS { in high_contention()
186 assert_eq!(*sl.lock(), THREADS * ITERATIONS); in high_contention()
/external/jackson-core/src/test/java/perf/
DConcurrencyReadTest.java14 private final static int THREADS = 50; field in ConcurrencyReadTest
22 for (int i = 0; i < THREADS; ++i) { in test()

123