Struct NVCVWorkspaceMemRec

Struct Documentation

struct NVCVWorkspaceMemRec

Memory block for use in a workspace object.

A workspace memory structure contains the requriements (these can be useful when obtaining memory from the workspace) a pointer to the memory object and an optional CUDA event object which notifies that the memory is ready to use.

Public Members

NVCVWorkspaceMemRequirements req

The requirements that the memory pointed to by data must satisfy

void *data

The pointer to the workspace memory.

Remark

The accessibility of the memory may be restricted to the host or a specific device.

cudaEvent_t ready

The event which notifies that the memory is ready to use.

The event object is used in two ways - the user (e.g. an operator) of the workspace memory should wait for the event in the context in which it will use the memory as well as record the event after it has scheduled all work that uses the memory object.