Intel clGPU
command Struct Referenceabstract

Base class for a command. More...

#include <engine.hpp>

Inherits engine_object.

Inherited by commands_parallel, commands_sequence, kernel_command, and raise_event_command.

Public Member Functions

virtual std::shared_ptr< eventsubmit (const std::vector< std::shared_ptr< event >> &dependencies={}, const command_queue &queue=default_queue)=0
 Submit the command on Engine queue. More...
 
- Public Member Functions inherited from engine_object
 engine_object (const std::shared_ptr< engine > &engine)
 
template<class EngTy = engine>
auto get_engine () const -> typename std::enable_if< std::is_base_of< engine, EngTy >::value, std::shared_ptr< EngTy >>::type
 Returns associated Engine object.
 

Detailed Description

Base class for a command.

Definition at line 100 of file engine.hpp.

Member Function Documentation

◆ submit()

virtual std::shared_ptr<event> submit ( const std::vector< std::shared_ptr< event >> &  dependencies = {},
const command_queue queue = default_queue 
)
pure virtual

Submit the command on Engine queue.

Parameters
dependenciesthe List of Events to be waited before command execution start
queuereference to the CommandQueue in which the command to be submitted
Returns
Event will be set on command completion

Implemented in commands_parallel, and commands_sequence.


The documentation for this struct was generated from the following file: