24.02.1
|
Internal implementation of GpuWorkloadSketch. More...
#include <GpuWorkloadSketchImpl.h>
Public Member Functions | |
Implementation (Context *context) | |
Constructor. More... | |
Implementation (const Implementation &impl)=delete | |
Prevent instances of this class from being copy constructed. More... | |
Implementation & | operator= (const Implementation &impl)=delete |
Prevent instances of this class from being copied. More... | |
Implementation (Implementation &&impl)=default | |
Allow instances of this class to be move constructed. More... | |
Implementation & | operator= (Implementation &&impl)=default |
Allow instances of this class to be moved. More... | |
const Context * | context () const |
Get workload context. More... | |
Context * | context () |
Get workload context. More... | |
const GpuKernelComponentGraph & | component_graph () const |
Get component graph. More... | |
GpuKernelComponentGraph & | component_graph () |
Get component graph. More... | |
const GpuOperatorGroup & | operator_group () const |
Get operator group. More... | |
GpuOperatorGroup & | operator_group () |
Get operator group. More... | |
GpuWorkloadSourceCode | generate_source_code () const |
Generate GpuWorkloadSourceCode from the workload sketch. More... | |
ITensorInfo * | create_virtual_tensor () |
Create a virtual (see MemoryType) tensor info and save it. More... | |
ITensorInfo * | create_auxiliary_tensor (const ITensorInfo &tensor_info) |
Create an auxiliary (see MemoryType) tensor info and save it. More... | |
ITensorInfo * | get_tensor_info (ITensorInfo::Id id) |
Internal implementation of GpuWorkloadSketch.
Definition at line 42 of file GpuWorkloadSketchImpl.h.
|
inlineexplicit |
Constructor.
[in] | context | global workload creation context |
Definition at line 49 of file GpuWorkloadSketchImpl.h.
References GpuWorkloadSketch::Implementation::context().
|
delete |
Prevent instances of this class from being copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
inline |
Get component graph.
Definition at line 77 of file GpuWorkloadSketchImpl.h.
|
inline |
Get component graph.
Definition at line 72 of file GpuWorkloadSketchImpl.h.
Referenced by GpuOutput::create_op(), GpuSigmoid::create_op(), GpuTanh::create_op(), GpuReshape::create_op(), GpuSoftmax::create_op(), GpuClamp::create_op(), GpuDepthwiseConv2d::create_op(), GpuResize::create_op(), GpuCast::create_op(), GpuConv2d::create_op(), GpuPool2d::create_op(), GpuElementwiseBinaryCommon::create_op(), and GpuWorkloadSketch::Implementation::generate_source_code().
|
inline |
Get workload context.
Definition at line 67 of file GpuWorkloadSketchImpl.h.
|
inline |
Get workload context.
Definition at line 62 of file GpuWorkloadSketchImpl.h.
Referenced by GpuOutput::create_op(), GpuSigmoid::create_op(), GpuTanh::create_op(), GpuReshape::create_op(), GpuSoftmax::create_op(), GpuClamp::create_op(), GpuDepthwiseConv2d::create_op(), GpuResize::create_op(), GpuCast::create_op(), GpuConv2d::create_op(), GpuPool2d::create_op(), GpuElementwiseBinaryCommon::create_op(), and GpuWorkloadSketch::Implementation::Implementation().
|
inline |
Create an auxiliary (see MemoryType) tensor info and save it.
[in] | tensor_info | ITensorInfo to copy from |
Definition at line 115 of file GpuWorkloadSketchImpl.h.
References GpuWorkloadContext::Impl::create_auxiliary_tensor(), GpuWorkloadContext::implementation(), and tensor_info.
Referenced by GpuSoftmax::create_op().
|
inline |
Create a virtual (see MemoryType) tensor info and save it.
Definition at line 105 of file GpuWorkloadSketchImpl.h.
References GpuWorkloadContext::Impl::create_virtual_tensor(), and GpuWorkloadContext::implementation().
Referenced by GpuSigmoid::create_op(), GpuTanh::create_op(), GpuClamp::create_op(), GpuReshape::create_op(), GpuCast::create_op(), GpuDepthwiseConv2d::create_op(), GpuResize::create_op(), GpuConv2d::create_op(), GpuPool2d::create_op(), and GpuElementwiseBinaryCommon::create_op().
|
inline |
Generate GpuWorkloadSourceCode from the workload sketch.
Definition at line 96 of file GpuWorkloadSketchImpl.h.
References GpuWorkloadSketch::Implementation::component_graph(), GpuKernelComponentGraph::fuse(), GpuWorkloadContext::implementation(), GpuWorkloadContext::Impl::mem_map(), and GpuKernelComponentStream::write_workload_code().
Referenced by ClWorkloadRuntime::configure().
|
inline |
Definition at line 120 of file GpuWorkloadSketchImpl.h.
References GpuWorkloadContext::Impl::get_tensor_info(), and GpuWorkloadContext::implementation().
|
delete |
Prevent instances of this class from being copied.
|
default |
Allow instances of this class to be moved.
|
inline |
Get operator group.
Definition at line 87 of file GpuWorkloadSketchImpl.h.
|
inline |
Get operator group.
Definition at line 82 of file GpuWorkloadSketchImpl.h.
Referenced by GpuOutput::create_op(), GpuSigmoid::create_op(), GpuTanh::create_op(), GpuClamp::create_op(), GpuSoftmax::create_op(), GpuReshape::create_op(), GpuResize::create_op(), GpuDepthwiseConv2d::create_op(), GpuCast::create_op(), GpuConv2d::create_op(), GpuPool2d::create_op(), GpuElementwiseBinaryCommon::create_op(), GpuOutput::validate_op(), GpuSigmoid::validate_op(), GpuTanh::validate_op(), GpuReshape::validate_op(), GpuCast::validate_op(), GpuResize::validate_op(), GpuSoftmax::validate_op(), GpuClamp::validate_op(), GpuConv2d::validate_op(), GpuDepthwiseConv2d::validate_op(), GpuPool2d::validate_op(), and GpuElementwiseBinaryCommon::validate_op().