class InferenceEngine::gpu::VAContext

Overview

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

#include <gpu_context_api_va.hpp>

class VAContext: public InferenceEngine::gpu::ClContext
{
public:
    // typedefs

    typedef std::shared_ptr<VAContext> Ptr;

    // methods

    operator VADisplay ();
};

Inherited Members

public:
    // typedefs

    typedef std::shared_ptr<RemoteContext> Ptr;
    typedef std::shared_ptr<const RemoteContext> CPtr;
    typedef std::shared_ptr<ClContext> Ptr;

    // methods

    template <
        typename T,
        typename std::enable_if<!std::is_pointer<T>::value&&!std::is_reference<T>::value, int>::type = 0,
        typename std::enable_if<std::is_base_of<RemoteContext, T>::value, int>::type = 0
        >
    bool is();

    template <
        typename T,
        typename std::enable_if<!std::is_pointer<T>::value&&!std::is_reference<T>::value, int>::type = 0,
        typename std::enable_if<std::is_base_of<RemoteContext, T>::value, int>::type = 0
        >
    bool is() const;

    template <
        typename T,
        typename std::enable_if<!std::is_pointer<T>::value&&!std::is_reference<T>::value, int>::type = 0,
        typename std::enable_if<std::is_base_of<RemoteContext, T>::value, int>::type = 0
        >
    T \* as();

    template <
        typename T,
        typename std::enable_if<!std::is_pointer<T>::value&&!std::is_reference<T>::value, int>::type = 0,
        typename std::enable_if<std::is_base_of<RemoteContext, T>::value, int>::type = 0
        >
    const T \* as() const;

    virtual std::string getDeviceName() const = 0;

    virtual RemoteBlob::Ptr CreateBlob(
        const TensorDesc& tensorDesc,
        const ParamMap& params = {}
        ) = 0;

    virtual MemoryBlob::Ptr CreateHostBlob(const TensorDesc& tensorDesc);
    virtual ParamMap getParams() const = 0;
    cl_context get();
    operator cl_context ();
    operator cl::Context ();

Detailed Documentation

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

User can also obtain OpenCL context handle from this class.

Typedefs

typedef std::shared_ptr<VAContext> Ptr

A smart pointer to the VAContext object.

Methods

operator VADisplay ()

VADisplay conversion operator for the VAContext object.

Returns:

Underlying VADisplay object handle