MAGMA  2.3.0
Matrix Algebra for GPU and Multicore Architectures
 All Classes Files Functions Friends Groups Pages
Event management

Functions

void magma_event_create (magma_event_t *event)
 Creates a GPU event. More...
 
void magma_event_destroy (magma_event_t event)
 Destroys a GPU event, freeing its resources. More...
 
void magma_event_record (magma_event_t event, magma_queue_t queue)
 Records an event into the queue's execution stream. More...
 
void magma_event_sync (magma_event_t event)
 Synchronizes with an event. More...
 
void magma_queue_wait_event (magma_queue_t queue, magma_event_t event)
 Synchronizes a queue with an event. More...
 

Detailed Description

Function Documentation

void magma_event_create ( magma_event_t *  event)

Creates a GPU event.

Parameters
[in]eventOn output, the newly created event.
void magma_event_destroy ( magma_event_t  event)

Destroys a GPU event, freeing its resources.

Parameters
[in]eventEvent to destroy.
void magma_event_record ( magma_event_t  event,
magma_queue_t  queue 
)

Records an event into the queue's execution stream.

The event will trigger when all previous operations on this queue finish.

Parameters
[in]eventEvent to record.
[in]queueQueue to execute in.
void magma_event_sync ( magma_event_t  event)

Synchronizes with an event.

The CPU blocks until the event triggers.

Parameters
[in]eventEvent to synchronize with.
void magma_queue_wait_event ( magma_queue_t  queue,
magma_event_t  event 
)

Synchronizes a queue with an event.

The queue blocks until the event triggers. The CPU does not block.

Parameters
[in]eventEvent to synchronize with.
[in]queueQueue to synchronize.