Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_iree_hal_target_options_t Struct Reference

IREE HAL target-routing options. More...

#include <iree_hal.h>

Data Fields

loomc_structure_type_t type
 Structure type.
loomc_host_size_t structure_size
 Size of this structure in bytes.
const void * next
 Provider-specific option descriptors.
loomc_string_view_t identifier
 Stable identifier for a profile derived from the device.
iree_hal_device_t * device
 IREE HAL device borrowed for the duration of the call.
iree_hal_physical_device_affinity_t physical_device_affinity
 Optional physical-device set the selected target must fully cover.
loomc_target_profile_t * target_profile
 Optional caller-selected profile that the HAL target must load exactly.
const loomc_iree_hal_target_provider_t *const * providers
 Ordered borrowed array of provider descriptors.
loomc_host_size_t provider_count
 Number of entries in providers.

Detailed Description

IREE HAL target-routing options.

Field Documentation

◆ physical_device_affinity

iree_hal_physical_device_affinity_t loomc_iree_hal_target_options_t::physical_device_affinity

Optional physical-device set the selected target must fully cover.

Zero selects the unique highest-priority target for the logical device. A heterogeneous logical device may require an explicit affinity.

◆ target_profile

loomc_target_profile_t* loomc_iree_hal_target_options_t::target_profile

Optional caller-selected profile that the HAL target must load exactly.

When NULL, the selected provider derives the best compatible profile from immutable device facts. When non-NULL, the provider validates that an exact compatible executable target exists and retains this profile in the returned selection.

◆ type

loomc_structure_type_t loomc_iree_hal_target_options_t::type

Structure type.

Must be LOOMC_STRUCTURE_TYPE_IREE_HAL_TARGET_OPTIONS when nonzero.


The documentation for this struct was generated from the following file: