You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ascend910b-support.md
+26-18Lines changed: 26 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,12 @@
1
-
##Introduction
1
+
# Introduction to huawei.com/Ascend910 support
2
2
3
-
**We now support huawei.com/Ascend910 by implementing most device-sharing features as nvidia-GPU**, including:
3
+
**HAMi now supports huawei.com/Ascend910 by implementing most device-sharing features as nvidia-GPU**, including:
4
4
5
-
***NPU sharing***: Each task can allocate a portion of Ascend NPU instead of a whole NLU card, thus NPU can be shared among multiple tasks.
5
+
***_NPU sharing_**: Each task can allocate a portion of Ascend NPU instead of a whole NLU card, thus NPU can be shared among multiple tasks.
6
6
7
-
***Device Memory Control***: Ascend NPUs can be allocated with certain device memory size and guarantee it that it does not exceed the boundary.
8
-
9
-
***Device Core Control***: Ascend NPUs can be allocated with certain compute cores and guarantee it that it does not exceed the boundary.
7
+
***_Device Memory Control_**: Ascend NPUs can be allocated with certain device memory size and guarantee it that it does not exceed the boundary.
10
8
9
+
***_Device Core Control_**: Ascend NPUs can be allocated with certain compute cores and guarantee it that it does not exceed the boundary.
11
10
12
11
## Prerequisites
13
12
@@ -20,29 +19,33 @@
20
19
* Install the chart using helm, See 'enabling vGPU support in kubernetes' section [here](https://github.com/Project-HAMi/HAMi#enabling-vgpu-support-in-kubernetes)
* Download yaml for Ascend-vgpu-device-plugin from HAMi Project [here](https://github.com/Project-HAMi/ascend-device-plugin/blob/master/build/ascendplugin-910-hami.yaml), and deploy
HAMi currently has a [built-in share configuration](https://github.com/Project-HAMi/HAMi/blob/master/charts/hami/templates/scheduler/device-configmap.yaml) for ascend.
38
39
39
40
You can customize the ascend share configuration by following the steps below:
40
41
41
42
<details>
42
43
<summary>customize ascend config</summary>
43
44
44
-
### Create a new directory files in hami charts, the directory structure is as follows
45
-
45
+
### Create a new directory in hami charts
46
+
47
+
The directory structure is as follows:
48
+
46
49
```bash
47
50
tree -L 1
48
51
.
@@ -52,11 +55,13 @@ You can customize the ascend share configuration by following the steps below:
52
55
└── values.yaml
53
56
```
54
57
55
-
### Create the device-config.yaml file, the content is as follows
58
+
### Create device-config.yaml
59
+
60
+
The content is as follows:
56
61
57
62
```yaml
58
63
vnpus:
59
-
- chipName: 910B
64
+
- chipName: 910B
60
65
commonWord: Ascend910A
61
66
resourceName: huawei.com/Ascend910A
62
67
resourceMemoryName: huawei.com/Ascend910A-memory
@@ -76,7 +81,7 @@ You can customize the ascend share configuration by following the steps below:
76
81
- name: vir16
77
82
memory: 17476
78
83
aiCore: 16
79
-
- chipName: 910B3
84
+
- chipName: 910B3
80
85
commonWord: Ascend910B
81
86
resourceName: huawei.com/Ascend910B
82
87
resourceMemoryName: huawei.com/Ascend910B-memory
@@ -93,7 +98,7 @@ You can customize the ascend share configuration by following the steps below:
93
98
memory: 32768
94
99
aiCore: 10
95
100
aiCPU: 3
96
-
- chipName: 310P3
101
+
- chipName: 310P3
97
102
commonWord: Ascend310P
98
103
resourceName: huawei.com/Ascend310P
99
104
resourceMemoryName: huawei.com/Ascend310P-memory
@@ -115,16 +120,19 @@ You can customize the ascend share configuration by following the steps below:
115
120
aiCore: 4
116
121
aiCPU: 4
117
122
```
118
-
### Helm installation and updates will be based on the configuration in this file, overwriting the built-in configuration of Helm
119
-
</details>
120
123
124
+
### Install and update with Helm
125
+
126
+
Helm installation and updates will be based on the configuration in this file, overwriting the built-in configuration of Helm.
127
+
128
+
</details>
121
129
122
130
## Running Ascend jobs
123
131
124
132
Ascend 910Bs can now be requested by a container
125
133
using the `huawei.com/ascend910` and `huawei.com/ascend910-memory` resource type:
126
134
127
-
```
135
+
```yaml
128
136
apiVersion: v1
129
137
kind: Pod
130
138
metadata:
@@ -146,4 +154,4 @@ spec:
146
154
147
155
1. Ascend-910B-sharing in init container is not supported.
148
156
149
-
2. `huawei.com/Ascend910-memory` only work when `huawei.com/Ascend910=1`.
157
+
1. `huawei.com/Ascend910-memory` only work when `huawei.com/Ascend910=1`.
0 commit comments