Home
last modified time | relevance | path

Searched refs:thread_index (Results 1 – 25 of 41) sorted by relevance

12

/external/ltp/testcases/kernel/mem/mtest07/
Dmallocstress.c208 int thread_index; in stress_malloc() local
210 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc()
211 SAFE_PTHREAD_CREATE(&thread_id[thread_index], NULL, alloc_mem, in stress_malloc()
212 (void *)(uintptr_t)thread_index); in stress_malloc()
219 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc()
222 SAFE_PTHREAD_JOIN(thread_id[thread_index], &status); in stress_malloc()
225 thread_index); in stress_malloc()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dparallel_interleave_dataset_op.cc613 const int64 thread_index) { in WorkerThread() argument
635 auto cleanup = gtl::MakeCleanup([this, thread_index, ctx] { in WorkerThread()
637 workers_[thread_index].cond_var.notify_all(); in WorkerThread()
649 worker_thread_states_[thread_index].iterator == nullptr && in WorkerThread()
650 worker_thread_states_[thread_index].iterator_creation_status.ok(); in WorkerThread()
670 worker_thread_states_[thread_index].input.empty(); in WorkerThread()
675 while (!cancelled_ && !workers_[thread_index].is_producing) { in WorkerThread()
677 workers_[thread_index].cond_var.wait(l); in WorkerThread()
689 worker_thread_states_[thread_index].input.swap( in WorkerThread()
690 workers_[thread_index].input); in WorkerThread()
[all …]
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_stoptheworld_test.cc98 volatile uptr thread_index; member
105 : thread_index(0), in AdvancedCallbackArgument()
115 &callback_argument->thread_index, 1); in AdvancedIncrementerThread()
126 __sync_fetch_and_add(&callback_argument->thread_index, in AdvancedIncrementerThread()
127 kThreadCount - callback_argument->thread_index); in AdvancedIncrementerThread()
175 while (__sync_fetch_and_add(&argument.thread_index, 0) < kStopWorldAfter) in TEST()
182 while (__sync_fetch_and_add(&argument.thread_index, 0) < kThreadCount) in TEST()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_rast.c491 pq->start[task->thread_index] = task->thread_data.vis_counter; in lp_rast_begin_query()
494 pq->start[task->thread_index] = task->ps_invocations; in lp_rast_begin_query()
518 pq->end[task->thread_index] += in lp_rast_end_query()
519 task->thread_data.vis_counter - pq->start[task->thread_index]; in lp_rast_end_query()
520 pq->start[task->thread_index] = 0; in lp_rast_end_query()
523 pq->end[task->thread_index] = os_time_get_nano(); in lp_rast_end_query()
526 pq->end[task->thread_index] += in lp_rast_end_query()
527 task->ps_invocations - pq->start[task->thread_index]; in lp_rast_end_query()
528 pq->start[task->thread_index] = 0; in lp_rast_end_query()
704 task->thread_index, (long long unsigned)total, in rasterize_scene()
[all …]
/external/mesa3d/src/util/
Du_queue.c230 int thread_index; member
237 int thread_index = ((struct thread_input*)input)->thread_index; in util_queue_thread_func() local
243 util_snprintf(name, sizeof(name), "%s:%i", queue->name, thread_index); in util_queue_thread_func()
271 job.execute(job.job, thread_index); in util_queue_thread_func()
274 job.cleanup(job.job, thread_index); in util_queue_thread_func()
329 input->thread_index = i; in util_queue_init()
557 util_queue_get_thread_time_nano(struct util_queue *queue, unsigned thread_index) in util_queue_get_thread_time_nano() argument
560 if (thread_index >= queue->num_threads) in util_queue_get_thread_time_nano()
563 return u_thread_get_time_nano(queue->threads[thread_index]); in util_queue_get_thread_time_nano()
Du_queue.h191 typedef void (*util_queue_execute_func)(void *job, int thread_index);
239 unsigned thread_index);
/external/libcxx/utils/google-benchmark/test/
Dfixture_test.cc10 if (state.thread_index == 0) { in SetUp()
17 if (state.thread_index == 0) { in TearDown()
36 if (st.thread_index == 0) { in BENCHMARK_DEFINE_F()
Dbenchmark_test.cc129 if (state.thread_index == 0) { in BM_SetupTeardown()
142 if (state.thread_index == 0) { in BM_SetupTeardown()
160 int from = thread_size * state.thread_index; in BM_ParallelMemset()
163 if (state.thread_index == 0) { in BM_ParallelMemset()
175 if (state.thread_index == 0) { in BM_ParallelMemset()
Dskip_with_error_test.cc94 if (state.range(0) == 1 && state.thread_index <= (state.threads / 2)) { in BM_error_during_running()
139 if (state.thread_index <= (state.threads / 2)) in BM_error_after_running()
151 if (state.range(0) == 1 && state.thread_index <= (state.threads / 2)) { in BM_error_while_paused()
/external/google-benchmark/test/
Dfixture_test.cc10 if (state.thread_index == 0) { in SetUp()
17 if (state.thread_index == 0) { in TearDown()
36 if (st.thread_index == 0) { in BENCHMARK_DEFINE_F()
Dbenchmark_test.cc129 if (state.thread_index == 0) { in BM_SetupTeardown()
142 if (state.thread_index == 0) { in BM_SetupTeardown()
160 int from = thread_size * state.thread_index; in BM_ParallelMemset()
163 if (state.thread_index == 0) { in BM_ParallelMemset()
175 if (state.thread_index == 0) { in BM_ParallelMemset()
Dskip_with_error_test.cc94 if (state.range(0) == 1 && state.thread_index <= (state.threads / 2)) { in BM_error_during_running()
139 if (state.thread_index <= (state.threads / 2)) in BM_error_after_running()
151 if (state.range(0) == 1 && state.thread_index <= (state.threads / 2)) { in BM_error_while_paused()
/external/mesa3d/src/broadcom/compiler/
Dvir_register_allocate.c116 int thread_index = ffs(c->threads) - 1; in v3d_register_allocate() local
118 if (thread_index >= 1) in v3d_register_allocate()
119 thread_index--; in v3d_register_allocate()
233 c->compiler->reg_class_phys[thread_index]); in v3d_register_allocate()
240 c->compiler->reg_class_phys_or_acc[thread_index]); in v3d_register_allocate()
/external/google-breakpad/src/processor/
Dstackwalk_common.cc847 for (int thread_index = 0; thread_index < thread_count; ++thread_index) { in PrintProcessState() local
848 if (thread_index != requesting_thread) { in PrintProcessState()
851 printf("Thread %d\n", thread_index); in PrintProcessState()
852 PrintStack(process_state.threads()->at(thread_index), cpu, in PrintProcessState()
854 process_state.thread_memory_regions()->at(thread_index), in PrintProcessState()
920 for (int thread_index = 0; thread_index < thread_count; ++thread_index) { in PrintProcessStateMachineReadable() local
921 if (thread_index != requesting_thread) { in PrintProcessStateMachineReadable()
923 PrintStackMachineReadable(thread_index, in PrintProcessStateMachineReadable()
924 process_state.threads()->at(thread_index)); in PrintProcessStateMachineReadable()
Dminidump_processor.cc159 for (unsigned int thread_index = 0; in Process() local
160 thread_index < thread_count; in Process()
161 ++thread_index) { in Process()
164 thread_index, thread_count); in Process()
167 MinidumpThread *thread = threads->GetThreadAtIndex(thread_index); in Process()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtraceme_recorder_test.cc172 int thread_index = 0; in TEST() local
173 ss >> thread_index; in TEST()
174 auto& state = thread_state[thread_index]; in TEST()
/external/tensorflow/tensorflow/core/kernels/
Dbias_op_gpu.cu.cc184 int32 thread_index = threadIdx.x; in BiasGradNCHW_SharedAtomics() local
185 if (thread_index < 32) { in BiasGradNCHW_SharedAtomics()
186 AccT data = s_data[thread_index]; in BiasGradNCHW_SharedAtomics()
190 if (thread_index == 0) { in BiasGradNCHW_SharedAtomics()
Dtopk_op_gpu.h348 const int thread_index = threadIdx.x;
354 thread_index, thread_count);
357 if (thread_index == 0) {
/external/google-breakpad/src/tools/mac/crash_report/
Dcrash_report.mm286 for (int thread_index = 0; thread_index < thread_count; ++thread_index) {
287 if (thread_index != requesting_thread) {
290 printf("Thread %d\n", thread_index);
291 PrintStack(process_state.threads()->at(thread_index), cpu);
293 thread_memory_regions->at(thread_index);
/external/mesa3d/src/mesa/main/
Dglthread.c44 glthread_unmarshal_batch(void *job, int thread_index) in glthread_unmarshal_batch() argument
60 glthread_thread_initialization(void *job, int thread_index) in glthread_thread_initialization() argument
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_shaders.c1434 int thread_index, in si_build_shader_variant() argument
1443 if (thread_index >= 0) { in si_build_shader_variant()
1445 assert(thread_index < ARRAY_SIZE(sscreen->tm_low_priority)); in si_build_shader_variant()
1446 tm = sscreen->tm_low_priority[thread_index]; in si_build_shader_variant()
1448 assert(thread_index < ARRAY_SIZE(sscreen->tm)); in si_build_shader_variant()
1449 tm = sscreen->tm[thread_index]; in si_build_shader_variant()
1478 static void si_build_shader_variant_low_priority(void *job, int thread_index) in si_build_shader_variant_low_priority() argument
1482 assert(thread_index >= 0); in si_build_shader_variant_low_priority()
1484 si_build_shader_variant(shader, thread_index, true); in si_build_shader_variant_low_priority()
1527 int thread_index) in si_shader_select_with_key() argument
[all …]
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_cs.h136 void radeon_drm_cs_emit_ioctl_oneshot(void *job, int thread_index);
/external/libcxx/utils/google-benchmark/src/
Dbenchmark.cc136 thread_index(thread_i), in State()
141 CHECK_LT(thread_index, threads) << "thread_index must be less than threads"; in State()
/external/tensorflow/tensorflow/core/kernels/data/
Ddataset_utils.cc85 int64 thread_index, const InstantiatedCapturedFunction& inst_captured_func, in MakeIteratorFromInputElement() argument
105 ctx, strings::StrCat(prefix, "[", thread_index, "]"), out_iterator); in MakeIteratorFromInputElement()
/external/google-benchmark/src/
Dbenchmark.cc136 thread_index(thread_i), in State()
141 CHECK_LT(thread_index, threads) << "thread_index must be less than threads"; in State()

12