Class InferenceEngine::gpu::ClContext

class ClContext : public InferenceEngine::RemoteContext, public InferenceEngine::gpu::details::param_map_obj_getter

This class represents an abstraction for GPU plugin remote context which is shared with OpenCL context object. The plugin object derived from this class can be obtained either with GetContext() method of Executable network or using CreateContext() Core call.

Subclassed by InferenceEngine::gpu::D3DContext, InferenceEngine::gpu::VAContext

Public Types

using Ptr = std::shared_ptr<ClContext>

A smart pointer to the ClContext object.

Public Functions

inline cl_context get()

Returns the underlying OpenCL context handle.

Returns

cl_context

inline operator cl_context()

OpenCL context handle conversion operator for the ClContext object.

Returns

cl_context

inline operator cl::Context()

Standard Khronos cl::Context wrapper conversion operator for the ClContext object.

Returns

cl::Context object