Workload Controls
This page lists HAMi workload-side controls that are applied through pod annotations or container environment variables. Use them only with the backend and version that documents support for the control.
TOC
NVIDIA backend annotationsAscend backend annotationsNVIDIA backend environment variablesRelated pagesNVIDIA backend annotations
Do not use mode-specific annotations such as nvidia.com/vgpu-mode to enable experimental behavior unless the current Alauda Build of HAMi package and release notes explicitly support that behavior.
Pinning a workload to a GPU UUID also pins the workload to the node that hosts that GPU. Use this only when the workload really requires a specific device.
The following example restricts a HAMi workload to one of two NVIDIA GPU models while excluding a known device UUID:
Use comma-separated values when selecting multiple UUIDs or model names. The model string must match the value discovered by the installed NVIDIA stack.
Override the default node and GPU policies for a single workload only when it needs a different placement strategy:
Ascend backend annotations
HAMi generates Ascend UUID controls from the commonWord configured for the installed resource type:
For example, replace the placeholders below with the commonWord and resource key from the installed device configuration:
The annotation suffix must match the installed device configuration, and the resource key must match node allocatable resources. HAMi publishes registered device identifiers in node annotations such as hami.io/node-register-<commonWord>; do not assume they are identical to the identifiers displayed by every vendor tool.
NVIDIA backend environment variables
Use CUDA_DISABLE_CONTROL only for diagnosis. It changes runtime enforcement behavior and should not be part of a normal production workload template.