rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rexlib::command_queue Class Referenceabstract

Abstract command queue belonging to a device. More...

#include <rexlib/core/hardware/command_queue.hpp>

Public Member Functions

 command_queue (const command_queue &other)=delete
 
 command_queue (command_queue &&other)=delete
 
command_queue & operator= (const command_queue &other)=delete
 
command_queue & operator= (command_queue &&other)=delete
 
virtual command_token submit (command cmd)=0
 Submit a command for execution on this queue.
 

Detailed Description

Abstract command queue belonging to a device.

A command_queue runs the commands submitted to it on a device (kernel launches, memory transfers...). A command runs after the commands it depends on. Commands that do not depend on each other, directly or through other commands, may run in any order or at the same time, whichever queue they were submitted to.

See also
command::bind_dependencies

Member Function Documentation

◆ submit()

virtual command_token rexlib::command_queue::submit ( command  cmd)
pure virtual

Submit a command for execution on this queue.

Schedules the program in cmd to run on the supplied operands, once every command it depends on has finished. The call returns once the work has been recorded or completed; it may proceed asynchronously with respect to the host thread depending on the backend.

A dependency may stand for a command of any queue. If this queue cannot wait for it on its device, the call blocks the calling thread until that command has finished.

Parameters
cmdThe program to execute with its associated operands, workspaces and dependencies.
Returns
The token of the submitted command. It is empty if the command has finished when the call returns.
Precondition
cmd must hold a non-null program.

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