Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
base.h File Reference

AMDGPU target package identity and environment creation. More...

Go to the source code of this file.

Macros

#define LOOMC_ARTIFACT_FORMAT_AMDGPU_HSACO   "amdgpu-hsaco"
 AMDGPU HSA code object artifact format.

Functions

loomc_status_t loomc_target_environment_create_amdgpu (loomc_allocator_t allocator, loomc_target_environment_t **out_target_environment)
 Creates a target environment containing the AMDGPU target package.

Detailed Description

AMDGPU target package identity and environment creation.

This header is the dependency-light entry point for embedders that want to link the AMDGPU target package. It does not include HSA, HIP, ROCm, or IREE HAL headers. Live adapters should query their runtime independently, normalize the selected processor name, and pass that name to the AMDGPU profile API.

Function Documentation

◆ loomc_target_environment_create_amdgpu()

loomc_status_t loomc_target_environment_create_amdgpu ( loomc_allocator_t allocator,
loomc_target_environment_t ** out_target_environment )

Creates a target environment containing the AMDGPU target package.

Parameters
allocatorHost allocator used for target-environment storage.
out_target_environmentReceives one retained target environment on success.
Returns
OK when the target environment was created.
Ownership
The caller owns the returned reference and releases it with loomc_target_environment_release.