|
Loom C API
Public Loom compiler C API
|
Exact XDNA deployment profiles for target specialization. More...
Go to the source code of this file.
Functions | |
| loomc_status_t | loomc_target_profile_create_xdna (loomc_target_environment_t *target_environment, loomc_string_view_t device_key, loomc_allocator_t allocator, loomc_target_profile_t **out_profile) |
| Creates an immutable profile for a supported AIE2P device key. | |
Exact XDNA deployment profiles for target specialization.
| loomc_status_t loomc_target_profile_create_xdna | ( | loomc_target_environment_t * | target_environment, |
| loomc_string_view_t | device_key, | ||
| loomc_allocator_t | allocator, | ||
| loomc_target_profile_t ** | out_profile ) |
Creates an immutable profile for a supported AIE2P device key.
The key identifies the array geometry and register/configuration ABI, for example amd.xdna.strix_halo.17f0_11. This is an offline lookup; it does not probe hardware. Unknown keys fail instead of assuming a compatible device. Supply the profile through ordinary loomc_target_specialization_options_t function or target-declaration bindings. The compiled function versions retain their device facts through emission, so no separate emit profile is needed.
| target_environment | Environment containing the AIE2P target package. |
| device_key | Exact device key; the view need not be NUL-terminated. |
| allocator | Host allocator used for the profile handle. |
| out_profile | Receives one retained profile on success, NULL on failure. |