Home
last modified time | relevance | path

Searched refs:gpu_context (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/stream_executor/gpu/
Dgpu_stream.cc26 if (!GpuDriver::CreateStream(parent_->gpu_context(), &gpu_stream_)) { in Init()
29 return GpuDriver::CreateEvent(parent_->gpu_context(), &completed_event_, in Init()
37 GpuDriver::DestroyEvent(parent_->gpu_context(), &completed_event_); in Destroy()
43 GpuDriver::DestroyStream(parent_->gpu_context(), &gpu_stream_); in Destroy()
47 return GpuDriver::IsStreamIdle(parent_->gpu_context(), gpu_stream_); in IsIdle()
Dgpu_timer.cc28 GpuContext* context = parent_->gpu_context(); in Init()
52 GpuContext* context = parent_->gpu_context(); in Destroy()
70 parent_->gpu_context(), &elapsed_milliseconds, start_event_, stop_event_); in GetElapsedMilliseconds()
76 parent_->gpu_context(), start_event_, stream->gpu_stream()); in Start()
85 parent_->gpu_context(), stop_event_, stream->gpu_stream()); in Stop()
Dgpu_event.cc31 return GpuDriver::CreateEvent(parent_->gpu_context(), &gpu_event_, in Init()
36 return GpuDriver::DestroyEvent(parent_->gpu_context(), &gpu_event_); in Destroy()
40 return GpuDriver::RecordEvent(parent_->gpu_context(), gpu_event_, in Record()
Dgpu_executor.h236 GpuContext* gpu_context();
/external/libdrm/amdgpu/
Damdgpu_cs.c54 struct amdgpu_context *gpu_context; in amdgpu_cs_ctx_create2() local
62 gpu_context = calloc(1, sizeof(struct amdgpu_context)); in amdgpu_cs_ctx_create2()
63 if (!gpu_context) in amdgpu_cs_ctx_create2()
66 gpu_context->dev = dev; in amdgpu_cs_ctx_create2()
68 r = pthread_mutex_init(&gpu_context->sequence_mutex, NULL); in amdgpu_cs_ctx_create2()
81 gpu_context->id = args.out.alloc.ctx_id; in amdgpu_cs_ctx_create2()
85 list_inithead(&gpu_context->sem_list[i][j][k]); in amdgpu_cs_ctx_create2()
86 *context = (amdgpu_context_handle)gpu_context; in amdgpu_cs_ctx_create2()
91 pthread_mutex_destroy(&gpu_context->sequence_mutex); in amdgpu_cs_ctx_create2()
92 free(gpu_context); in amdgpu_cs_ctx_create2()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_event.cc27 GpuDriver::QueryEvent(parent_->gpu_context(), gpu_event_); in PollForStatus()
Dcuda_gpu_executor.cc115 return cuda_exec->gpu_context(); in ExtractGpuContext()
961 GpuContext* GpuExecutor::gpu_context() { return context_; } in gpu_context() function in stream_executor::gpu::GpuExecutor
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_event.cc26 GpuDriver::QueryEvent(parent_->gpu_context(), gpu_event_); in PollForStatus()
Drocm_gpu_executor.cc92 ->gpu_context(); in GetGpuContext()
97 return rocm_exec->gpu_context(); in ExtractGpuContext()
863 GpuContext* GpuExecutor::gpu_context() { return context_; } in gpu_context() function in stream_executor::gpu::GpuExecutor