24.02.1
|
OpenCL runtime to run a workload. More...
#include <ClWorkloadRuntime.h>
Public Member Functions | |
ClWorkloadRuntime () | |
Default constructor. More... | |
~ClWorkloadRuntime () | |
Destructor. More... | |
ClWorkloadRuntime (ClWorkloadRuntime &&) | |
Move constructor. More... | |
ClWorkloadRuntime & | operator= (ClWorkloadRuntime &&) |
Move assignment. More... | |
Status | configure (const GpuWorkloadSketch &sketch) |
Configure ClWorkloadRuntime. More... | |
Status | run (const std::vector< CLTensor * > &tensors) |
Perform run workload. More... | |
std::vector< std::tuple< CLTensor *, TensorInfo, AuxMemoryInfo > > | get_auxiliary_tensors () |
Get auxiliary tensors of the workload and their memory requirement. More... | |
OpenCL runtime to run a workload.
Definition at line 46 of file ClWorkloadRuntime.h.
Default constructor.
Definition at line 286 of file ClWorkloadRuntime.cpp.
|
default |
Destructor.
|
default |
Move constructor.
Status configure | ( | const GpuWorkloadSketch & | sketch | ) |
Configure ClWorkloadRuntime.
[in] | sketch | GpuWorkloadSketch with which to configure |
Definition at line 296 of file ClWorkloadRuntime.cpp.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_RETURN_ERROR_ON_MSG, GpuWorkloadContext::cl_compile_context(), GpuWorkloadSketch::Implementation::generate_source_code(), GpuWorkloadSketch::gpu_context(), GpuWorkloadContext::gpu_language(), GpuWorkloadSketch::implementation(), arm_compute::experimental::dynamic_fusion::OpenCL, UnitWorkloadStage::Prepare, UnitWorkloadStage::Run, and arm_compute::test::validation::sketch.
Referenced by arm_compute::test::validation::TEST_CASE().
std::vector< std::tuple< CLTensor *, TensorInfo, AuxMemoryInfo > > get_auxiliary_tensors | ( | ) |
Get auxiliary tensors of the workload and their memory requirement.
Definition at line 369 of file ClWorkloadRuntime.cpp.
Referenced by arm_compute::test::validation::TEST_CASE().
|
default |
Move assignment.
Perform run workload.
[in,out] | tensors | Tensors required by the run workloads |
Definition at line 351 of file ClWorkloadRuntime.cpp.
References ARM_COMPUTE_RETURN_ON_ERROR, CLScheduler::enqueue_op(), and CLScheduler::get().
Referenced by arm_compute::test::validation::TEST_CASE().