Home
last modified time | relevance | path

Searched refs:CLScheduler (Results 1 – 25 of 101) sorted by relevance

12345

/external/ComputeLibrary/src/runtime/CL/
DCLScheduler.cpp32 cl::Context &CLScheduler::context() in context()
39 cl::CommandQueue &CLScheduler::queue() in queue()
45 GPUTarget CLScheduler::target() const in target()
50 CLGEMMHeuristicsHandle *CLScheduler::gemm_heuristics() const in gemm_heuristics()
55 void CLScheduler::set_queue(cl::CommandQueue queue) in set_queue()
60 void CLScheduler::set_target(GPUTarget target) in set_target()
65 void CLScheduler::set_tuner(ICLTuner *tuner) in set_tuner()
70 void CLScheduler::sync() in sync()
75 cl::Event CLScheduler::enqueue_sync_event() in enqueue_sync_event()
82 void CLScheduler::tune_kernel_static(ICLKernel &kernel) in tune_kernel_static()
[all …]
DCLMemoryRegion.cpp33 _queue(CLScheduler::get().queue()), in ICLMemoryRegion()
34 _ctx(CLScheduler::get().context()), in ICLMemoryRegion()
66 _mem = cl::Buffer(CLScheduler::get().context(), flags, _size); in CLBufferMemoryRegion()
100 _ptr = clSVMAlloc(CLScheduler::get().context().get(), flags, size, alignment); in ICLSVMMemoryRegion()
103 …_mem = cl::Buffer(CLScheduler::get().context(), CL_MEM_READ_WRITE | CL_MEM_USE_HOST_PTR, _size, _p… in ICLSVMMemoryRegion()
DUtils.cpp40 if(!CLScheduler::get().is_initialised()) in restore_program_cache_from_file()
42 arm_compute::CLScheduler::get().default_init(); in restore_program_cache_from_file()
62 cl::Context context = arm_compute::CLScheduler::get().context(); in restore_program_cache_from_file()
75 if(CLScheduler::get().is_initialised()) in save_program_cache_to_file()
DCLRuntimeContext.cpp32 …: _gpu_owned_scheduler(std::make_unique<CLScheduler>()), _gpu_scheduler(_gpu_owned_scheduler.get()… in CLRuntimeContext()
50 void CLRuntimeContext::set_gpu_scheduler(CLScheduler *scheduler) in set_gpu_scheduler()
56 CLScheduler *CLRuntimeContext::gpu_scheduler() in gpu_scheduler()
DCLTensorAllocator.cpp93CLScheduler::get().queue().enqueueWriteBuffer(scale.cl_buffer(), CL_TRUE, 0, num_elements * elemen… in populate_quantization_info()
102CLScheduler::get().queue().enqueueWriteBuffer(offset.cl_buffer(), CL_TRUE, 0, num_elements * offse… in populate_quantization_info()
171 …ARM_COMPUTE_RETURN_ERROR_ON(buffer.getInfo<CL_MEM_CONTEXT>().get() != CLScheduler::get().context()… in import_memory()
202 return map(CLScheduler::get().queue(), true); in lock()
216 unmap(CLScheduler::get().queue(), reinterpret_cast<uint8_t *>(_memory.region()->buffer())); in unlock()
/external/ComputeLibrary/arm_compute/runtime/CL/
DCLScheduler.h43 class CLScheduler final
47 CLScheduler();
49 CLScheduler(const CLScheduler &) = delete;
51 CLScheduler &operator=(const CLScheduler &) = delete;
53 ~CLScheduler() = default;
58 static CLScheduler &get();
DCLRuntimeContext.h50 void set_gpu_scheduler(CLScheduler *scheduler);
53 CLScheduler *gpu_scheduler();
57 std::unique_ptr<CLScheduler> _gpu_owned_scheduler{ nullptr };
58 CLScheduler *_gpu_scheduler{ nullptr };
DCLArray.h58 …: ICLArray<T>(max_num_values), _buffer(CLScheduler::get().context(), CL_MEM_ALLOC_HOST_PTR | CL_ME… in CLArray()
69 ICLArray<T>::map(CLScheduler::get().queue(), blocking);
79 ICLArray<T>::unmap(CLScheduler::get().queue()); in unmap()
/external/ComputeLibrary/src/gpu/cl/
DClQueue.cpp77 arm_compute::CLScheduler &ClQueue::scheduler() in scheduler()
79 return arm_compute::CLScheduler::get(); in scheduler()
84 return arm_compute::CLScheduler::get().queue(); in cl_queue()
90 arm_compute::CLScheduler::get().set_queue(queue); in set_cl_queue()
96 arm_compute::CLScheduler::get().queue().finish(); in finish()
/external/ComputeLibrary/src/gpu/cl/operators/
DClDirectConv2d.cpp59 GPUTarget gpu_target = CLScheduler::get().target(); in config_direct_convolution_nhwc()
80 k->set_target(CLScheduler::get().target()); in configure()
103 CLScheduler::get().tune_kernel_static(*_direct_conv_kernel); in configure()
123 CLScheduler::get().enqueue_op(*_src_border_handler.get(), tensors, false); in run()
125 CLScheduler::get().enqueue_op(*_direct_conv_kernel.get(), tensors, false); in run()
130 CLScheduler::get().enqueue_op(*_activation_kernel.get(), act_pack, false); in run()
DClIndirectConv2d.cpp53 GPUTarget gpu_target = CLScheduler::get().target(); in config_indirect_convolution_nhwc()
75 k0->set_target(CLScheduler::get().target()); in configure()
76 k1->set_target(CLScheduler::get().target()); in configure()
86 CLScheduler::get().tune_kernel_static(*_indirect_conv_kernel); in configure()
122 CLScheduler::get().enqueue_op(*_indirect_conv_kernel, indirect_conv2d_pack, true); in run()
138 CLScheduler::get().enqueue_op(*_addr_precalculation_kernel, indirect_buffer_pack, true); in prepare()
DClScale.cpp45 k->set_target(CLScheduler::get().target()); in configure()
50 CLScheduler::get().tune_kernel_static(*_kernel); in configure()
61 CLScheduler::get().enqueue_op(*_kernel.get(), tensors); in run()
DClGemm.cpp214 const GPUTarget gpu_target = CLScheduler::get().target(); in configure_native()
246 const GPUTarget gpu_target = CLScheduler::get().target(); in configure_reshaped()
291 const GPUTarget gpu_target = CLScheduler::get().target(); in configure_reshaped_only_rhs()
338 const GPUTarget gpu_target = CLScheduler::get().target(); in configure_reshaped_only_rhs_mmul()
381 const GPUTarget gpu_target = CLScheduler::get().target(); in validate_native()
418 const GPUTarget gpu_target = CLScheduler::get().target(); in validate_reshaped()
467 const GPUTarget gpu_target = CLScheduler::get().target(); in validate_reshaped_only_rhs()
516 const GPUTarget gpu_target = CLScheduler::get().target(); in validate_reshaped_only_rhs_mmul()
576 …_gemm_kernel_type = auto_select_gemm_kernel(auto_heuristics::CommonQuery{ CLScheduler::get().targe… in configure()
627 CLScheduler::get().target(), a->data_type(), m, n, k, batch_size, in validate()
[all …]
DClGemmLowpMatrixMultiplyCore.cpp272 const GPUTarget gpu_target = CLScheduler::get().target(); in configure()
492 const GPUTarget gpu_target = CLScheduler::get().target(); in validate()
689 CLScheduler::get().enqueue_op(*_mtx_b_reshape_kernel, mtx_b_reshape_pack, false); in run()
701 CLScheduler::get().enqueue_op(*_mtx_b_reduction_kernel, mtx_b_red_pack, false); in run()
712 CLScheduler::get().enqueue_op(*_mtx_a_reduction_kernel, mtx_a_red_pack, false); in run()
742 CLScheduler::get().enqueue_op(*_mm_reshaped_only_rhs_kernel, gemm_reshaped_pack, false); in run()
746CLScheduler::get().enqueue_op(*_mm_reshaped_only_rhs_mmul_kernel, gemm_reshaped_pack, false); in run()
761 CLScheduler::get().enqueue_op(*_mm_native_kernel, gemm_native_pack, false); in run()
776CLScheduler::get().enqueue_op(*_offset_contribution_output_stage_kernel, output_stage_pack, true); in run()
788 CLScheduler::get().enqueue_op(*_offset_contribution_kernel, offset_contrib_pack, true); in run()
[all …]
DClWinogradConv2d.cpp217 _output_transform->set_target(CLScheduler::get().target()); in configure()
259 CLScheduler::get().enqueue_op(_border_handler, pack_it, false); in run()
260 CLScheduler::get().enqueue_op(*_input_transform, pack_it, false); in run()
276 CLScheduler::get().enqueue_op(*_output_transform, pack_ot); in run()
293 CLScheduler::get().enqueue_op(*_filter_transform, pack_ft, false); in prepare()
301 CLScheduler::get().queue().finish(); in prepare()
DClPool3d.cpp44 k->set_target(CLScheduler::get().target()); in configure()
49 CLScheduler::get().tune_kernel_static(*_kernel); in configure()
/external/ComputeLibrary/tests/CL/
DHelper.h100 k->set_target(CLScheduler::get().target()); in configure()
114 CLScheduler::get().enqueue_op(_border_handler, tensors); in run()
115 CLScheduler::get().enqueue_op(*_kernel, tensors); in run()
199 k->set_target(CLScheduler::get().target()); in configure()
212 CLScheduler::get().enqueue(_border_handler, false); in run()
213 CLScheduler::get().enqueue(*_kernel); in run()
246 CLScheduler::get().enqueue(*_border_handler); in run()
247 CLScheduler::get().enqueue_op(*_kernel, tensors); in run()
/external/armnn/src/backends/cl/
DClContextControl.cpp108 …if (arm_compute::CLScheduler::get().is_initialised() && arm_compute::CLScheduler::get().context()(… in DoLoadOpenClRuntime()
111 arm_compute::CLScheduler::get().sync(); in DoLoadOpenClRuntime()
119 arm_compute::CLScheduler::get().init(context, commandQueue, device); in DoLoadOpenClRuntime()
161 … arm_compute::CLScheduler::get().init(context, commandQueue, device, m_Tuner, m_HeuristicsHandle); in DoLoadOpenClRuntime()
DOpenClTimer.hpp44 using CLScheduler = arm_compute::CLScheduler; typedef in armnn::OpenClTimer
/external/ComputeLibrary/src/runtime/CL/functions/
DCLFFT1D.cpp116 _digit_reverse_indices.map(CLScheduler::get().queue(), true); in configure()
118 _digit_reverse_indices.unmap(CLScheduler::get().queue()); in configure()
151 CLScheduler::get().enqueue(*_digit_reverse_kernel, false); in run()
156 CLScheduler::get().enqueue(*_fft_kernels[i], i == (_num_ffts - 1) && !_run_scale); in run()
162 CLScheduler::get().enqueue(*_scale_kernel, true); in run()
DCLPriorBoxLayer.cpp52 …_min = cl::Buffer(CLScheduler::get().context(), CL_MEM_ALLOC_HOST_PTR | CL_MEM_READ_WRIT… in configure()
53 …_aspect_ratios = cl::Buffer(CLScheduler::get().context(), CL_MEM_ALLOC_HOST_PTR | CL_MEM_READ_WRIT… in configure()
56 …_max = cl::Buffer(CLScheduler::get().context(), CL_MEM_ALLOC_HOST_PTR | CL_MEM_READ_WRITE, info.ma… in configure()
DCLGenerateProposalsLayer.cpp329 _scores_out->map(CLScheduler::get().queue(), true); in run_cpp_nms_kernel()
330 _proposals_4_roi_values.map(CLScheduler::get().queue(), true); in run_cpp_nms_kernel()
331 _num_valid_proposals->map(CLScheduler::get().queue(), true); in run_cpp_nms_kernel()
341 _scores_out->unmap(CLScheduler::get().queue()); in run_cpp_nms_kernel()
342 _proposals_4_roi_values.unmap(CLScheduler::get().queue()); in run_cpp_nms_kernel()
343 _num_valid_proposals->unmap(CLScheduler::get().queue()); in run_cpp_nms_kernel()
356 CLScheduler::get().enqueue(*_compute_anchors_kernel, false); in run()
374 CLScheduler::get().enqueue(*_bounding_box_kernel, false); in run()
384 CLScheduler::get().enqueue(*_pad_kernel, true); in run()
DCLCropResize.cpp123 _boxes->map(CLScheduler::get().queue()); in configure()
124 _box_ind->map(CLScheduler::get().queue()); in configure()
271 _boxes->unmap(CLScheduler::get().queue()); in configure()
272 _box_ind->unmap(CLScheduler::get().queue()); in configure()
273 CLScheduler::get().sync(); in configure()
285 CLScheduler::get().sync(); in run()
290 CLScheduler::get().sync(); in run()
295 CLScheduler::get().sync(); in run()
/external/ComputeLibrary/tests/framework/instruments/
DOpenCLTimer.cpp65 auto q = CLScheduler::get().queue(); in OpenCLClock()
69CLScheduler::get().set_queue(cl::CommandQueue(CLScheduler::get().context(), props | CL_QUEUE_PROFI… in OpenCLClock()
239 CLScheduler::get().queue().enqueueMarker(&event); in test_measurements()
241 CLScheduler::get().queue().finish(); in test_measurements()
/external/ComputeLibrary/src/graph/backends/CL/
DCLDeviceBackend.cpp89 CLScheduler::get().default_init(&_tuner, &_gemm_heuristics, _backend_type); in initialize_backend()
127 ARM_COMPUTE_ERROR_ON(CLScheduler::get().gemm_heuristics() == nullptr); in setup_backend_context()
128 CLScheduler::get().gemm_heuristics()->reload_from_file(ctx.config().mlgo_file); in setup_backend_context()
227 CLScheduler::get().sync(); in sync()

12345