|
Loom C API
Public Loom compiler C API
|
AMDGPU target profiles from IREE HAL devices. More...
Go to the source code of this file.
Data Structures | |
| struct | loomc_amdgpu_iree_hal_profile_options_t |
| AMDGPU profile options for an IREE HAL device. More... | |
Functions | |
| loomc_status_t | loomc_target_profile_create_amdgpu_iree_hal (loomc_target_environment_t *target_environment, const loomc_amdgpu_iree_hal_profile_options_t *options, loomc_allocator_t allocator, loomc_target_profile_t **out_profile, loomc_result_t **out_result) |
| Creates an exact AMDGPU target profile from an IREE HAL device. | |
| const loomc_iree_hal_profile_provider_t * | loomc_amdgpu_iree_hal_profile_provider (void) |
| Returns the generic IREE HAL router provider for AMDGPU devices. | |
AMDGPU target profiles from IREE HAL devices.
This optional leaf projects the canonical exact AMDGPU executable target advertised by an IREE HAL device into Loom's structured AMDGPU target profile. Target selectors and AMDHSA feature modes are parsed at the HAL family boundary and remain structured in the resulting profile.
A logical device containing heterogeneous physical devices must identify the physical-device set being compiled for. Omitting affinity is valid only when the logical device advertises one unambiguous highest-priority exact AMDGPU target.
| const loomc_iree_hal_profile_provider_t * loomc_amdgpu_iree_hal_profile_provider | ( | void | ) |
Returns the generic IREE HAL router provider for AMDGPU devices.
| loomc_status_t loomc_target_profile_create_amdgpu_iree_hal | ( | loomc_target_environment_t * | target_environment, |
| const loomc_amdgpu_iree_hal_profile_options_t * | options, | ||
| loomc_allocator_t | allocator, | ||
| loomc_target_profile_t ** | out_profile, | ||
| loomc_result_t ** | out_result ) |
Creates an exact AMDGPU target profile from an IREE HAL device.
The adapter selects one exact amdgpu executable target from the device specification, parses its canonical target key into target identity and AMDHSA feature states, and creates an ordinary AMDGPU profile.
| target_environment | AMDGPU target environment that will own the profile. |
| options | AMDGPU IREE HAL profile options. |
| allocator | Host allocator used for result and profile storage. |
| out_profile | Receives one retained profile when the result succeeds. Receives NULL on failed result. |
| out_result | Receives a retained result containing adapter diagnostics. |