|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
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. | |
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.
|
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.
| cmd | The program to execute with its associated operands, workspaces and dependencies. |
cmd must hold a non-null program.