Struct anira_sync_token#
-
struct anira_sync_token#
Inheritance diagram for anira_sync_token:
![digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"2" [label="anira::SyncToken" tooltip="anira::SyncToken"]
"1" [label="anira_sync_token" tooltip="anira_sync_token" fillcolor="#BFBFBF"]
"2" -> "1" [dir=forward tooltip="public-inheritance"]
}](../../_images/graphviz-2aa523e122b2614d6f5a48c12877820954fb9542.png)
A fence on a tensor’s memory; kind ANIRA_SYNC_NONE means the data is already visible. 24 bytes on every target. Tier 1: frozen. The two fd kinds (ANIRA_SYNC_SYNC_FILE_FD, ANIRA_SYNC_OPAQUE_FD_SEMAPHORE) own their descriptor: the token closes it when reset (anira_sync_token_reset), every hand-off is a transfer, and a holder that needs it longer duplicates it (anira_sync_token_dup). Every other kind is a non-owning handle.
Subclassed by anira::SyncToken
Public Members
-
uint32_t kind#
anira_sync_kind: which member of u is live.
-
uint32_t flags#
No bit is defined at v3.0.0; zero.
-
void *cuda_event#
ANIRA_SYNC_CUDA_EVENT: cudaEvent_t.
-
uint64_t semaphore#
VkSemaphore (timeline).
-
uint64_t value#
The timeline value that signals.
The event value that signals.
The fence value that signals.
-
struct anira_sync_token vk#
ANIRA_SYNC_VK_TIMELINE.
-
void *gl_sync#
ANIRA_SYNC_GL_SYNC: GLsync.
-
int32_t fd#
ANIRA_SYNC_SYNC_FILE_FD and ANIRA_SYNC_OPAQUE_FD_SEMAPHORE: the fd, owned by the token; negative = none. On Windows the NT handle (32 bits significant); 0 or negative = none.
-
void *object#
id<MTLSharedEvent>.
ID3D12Fence*.
-
struct anira_sync_token mtl#
ANIRA_SYNC_MTL_SHARED_EVENT.
-
struct anira_sync_token d3d12#
ANIRA_SYNC_D3D12_FENCE.
-
uint64_t raw[2]#
The payload as words.
-
union anira_sync_token u#
The payload of kind; never read under ANIRA_SYNC_NONE and ANIRA_SYNC_QUEUE_ORDERED.
-
uint32_t kind#