policy
API Reference: v1/policy.proto
Policy specifies the power policies for devices. Policies are defined within a topology with unique names describing the power min-max values.
Table of Contents
-
Messages
-
Enums
Messages
GPUPolicies
GPUPolicies is a list of GPUPolicy objects. Each policy in the list should address a unique GPU.
| Field | Type | Description |
|---|---|---|
| policies | repeated GPUPolicy | The GPU policies. Each policy should address a distinct GPU |
GPUPolicy
GPUPolicy specifies the power policy for a single GPU in a node.
| Field | Type | Description |
|---|---|---|
| gpu_id | uint32 | The GPU ID |
| oneof _power_limit.power_limit | optional PowerLimit | The power limit. Null value means the GPU does not have a set policy. Use null to remove GPU-specific policy assignment |
PolicyApplyStatus
Policy application status including applied policy details
| Field | Type | Description |
|---|---|---|
| policy | PolicyObject | Properties of policy to be created |
| status | Status | Operation status |
PolicyCreateRequest
PolicyCreateRequest is used by the TopologyManagementService.PolicyCreate.
| Field | Type | Description |
|---|---|---|
| object | PolicyObject | Properties of policy to be created |
PolicyCreateResponse
PolicyCreateResponse is returned if policy creation was successful.
| Field | Type | Description |
|---|---|---|
| status | Status | Operation status |
PolicyLimit
PolicyLimit specifies a power limit for a specific entity type.
| Field | Type | Description |
|---|---|---|
| element_type | PolicyElementType | The entity type to which the power limit applies |
| power_limit | PowerLimit | The power limit value |
PolicyObject
PolicyObject specifies a topology or resource group entity power policy.
| Field | Type | Description |
|---|---|---|
| name | string | Name of the policy. The name must be unique within a topology. |
| limits | repeated PolicyLimit | Limits for the policy |
| properties | google.protobuf.Struct | Properties for the policy |
PowerLimit
PowerLimit specifies a power limit for a specific entity
| Field | Type | Description |
|---|---|---|
| oneof power_limit.watts | double | none |
| oneof power_limit.percentage | double | none |
Enums
PolicyElementType
PolicyElementType specifies the type of entity to which the power limit applies
| Name | Number | Description |
|---|---|---|
| POLICY_ELEMENT_TYPE_NODE | 0 | none |
| POLICY_ELEMENT_TYPE_GPU | 1 | none |
| POLICY_ELEMENT_TYPE_CPU | 2 | none |
| POLICY_ELEMENT_TYPE_MEMORY | 3 | none |