Struct anira_init_info#

struct anira_init_info#

What the init slot of a processor or an engine receives (anira_processor_init_fn, anira_engine_init_fn): the facts of the core in effect when the carrier is first used, and the context it is used under. Tier 2, struct_size first, no implicit padding (LP64 24 bytes, ILP32 20); anira fills it, so it carries no struct_id. Valid for the duration of the call.

Public Members

uint32_t struct_size#

sizeof(anira_init_info) of the library.

uint32_t log_level#

anira_log_level: the level in effect in this copy of anira (the core reconciles one per process, the most verbose of its contexts’).

uint32_t num_threads#

The size of the inference-thread pool this copy of anira runs, what anira_num_inference_threads answers; 0 when the context brought its own threads (anira_inference_thread_create) or on a target without threads.

uint32_t reserved#

0.

const anira_context *context#

The context of the handler whose prepare reached the carrier first: its capabilities (anira_context_capabilities) are legal to query; valid until the callback returns, never kept.