Skip to content
fn

amp_policy_name

→const char*
const char * amp_policy_name(AmpPolicy p)

Returns the human-readable name of an AMP policy.

Used by diagnostics, error messages, and the profiler to render the policy attached to each dispatched op.

Parameters

pAmpPolicy
The policy value to stringify.

Returns

const char*

A pointer to a static C string — "Promote", "KeepInput", "ForceFP32" or "PromoteWidest". The pointer is stable for the lifetime of the process.

Raises

LucidError
Thrown via ErrorBuilder when p is not a known enumerator (defensive guard against bit-rotted casts).