Skip to content

Commit 278169b

Browse files
Merge pull request #83 from ooninoo/patch-1
Update allocate-310p.md
2 parents fcb822c + 3ac344e commit 278169b

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

docs/userguide/Ascend-device/examples/allocate-310p.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,23 @@ spec:
2424
huawei.com/Ascend310P-memory: 1024
2525
```
2626
27-
> **NOTICE:** *compute resource of Ascend910B is also limited with `huawei.com/Ascend310P-memory`, equals to the percentage of device memory allocated.*
27+
> **NOTICE:** *compute resource of Ascend310P is also limited with `huawei.com/Ascend310P-memory`, equals to the percentage of device memory allocated.*
28+
29+
## Select Device by UUID
30+
31+
You can specify which Ascend devices a pod uses or excludes by using annotations:
32+
33+
```yaml
34+
apiVersion: v1
35+
kind: Pod
36+
metadata:
37+
name: ascend-pod
38+
annotations:
39+
# Use specific Ascend devices (comma-separated list)
40+
hami.io/use-Ascend310P-uuid: "device-uuid-1,device-uuid-2"
41+
# Or exclude specific Ascend devices (comma-separated list)
42+
hami.io/no-use-Ascend310P-uuid: "device-uuid-3,device-uuid-4"
43+
spec:
44+
# ... rest of pod spec
45+
```
46+

0 commit comments

Comments
 (0)