Skip to content

Commit 87fcf0d

Browse files
ouyangluwei163ouyangluwei
andauthored
support ascend 910B2 (#885)
Signed-off-by: ouyangluwei <[email protected]> Co-authored-by: ouyangluwei <[email protected]>
1 parent ac6292d commit 87fcf0d

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

charts/hami/templates/scheduler/device-configmap.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,27 @@ data:
119119
- name: vir16
120120
memory: 17476
121121
aiCore: 16
122+
- chipName: 910B2
123+
commonWord: Ascend910B2
124+
resourceName: huawei.com/Ascend910B2
125+
resourceMemoryName: huawei.com/Ascend910B2-memory
126+
memoryAllocatable: 65536
127+
memoryCapacity: 65536
128+
aiCore: 24
129+
aiCPU: 6
130+
templates:
131+
- name: vir03_1c_8g
132+
memory: 8192
133+
aiCore: 3
134+
aiCPU: 1
135+
- name: vir06_1c_16g
136+
memory: 16384
137+
aiCore: 6
138+
aiCPU: 1
139+
- name: vir12_3c_32g
140+
memory: 32768
141+
aiCore: 12
142+
aiCPU: 3
122143
- chipName: 910B3
123144
commonWord: Ascend910B
124145
resourceName: huawei.com/Ascend910B

charts/hami/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ devices:
200200
customresources:
201201
- huawei.com/Ascend910A
202202
- huawei.com/Ascend910A-memory
203+
- huawei.com/Ascend910B2
204+
- huawei.com/Ascend910B2-memory
203205
- huawei.com/Ascend910B
204206
- huawei.com/Ascend910B-memory
205207
- huawei.com/Ascend910B4

pkg/device/devices.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,27 @@ vnpus:
249249
- name: "vir16"
250250
memory: 17476
251251
aiCore: 16
252+
- chipName: 910B2
253+
commonWord: Ascend910B2
254+
resourceName: huawei.com/Ascend910B2
255+
resourceMemoryName: huawei.com/Ascend910B2-memory
256+
memoryAllocatable: 65536
257+
memoryCapacity: 65536
258+
aiCore: 24
259+
aiCPU: 6
260+
templates:
261+
- name: vir03_1c_8g
262+
memory: 8192
263+
aiCore: 3
264+
aiCPU: 1
265+
- name: vir06_1c_16g
266+
memory: 16384
267+
aiCore: 6
268+
aiCPU: 1
269+
- name: vir12_3c_32g
270+
memory: 32768
271+
aiCore: 12
272+
aiCPU: 3
252273
- chipName: "910B3"
253274
commonWord: "Ascend910B"
254275
resourceName: "huawei.com/Ascend910B"

pkg/device/devices_test.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,27 @@ vnpus:
8989
- name: vir16
9090
memory: 17476
9191
aiCore: 16
92+
- chipName: 910B2
93+
commonWord: Ascend910B2
94+
resourceName: huawei.com/Ascend910B2
95+
resourceMemoryName: huawei.com/Ascend910B2-memory
96+
memoryAllocatable: 65536
97+
memoryCapacity: 65536
98+
aiCore: 24
99+
aiCPU: 6
100+
templates:
101+
- name: vir03_1c_8g
102+
memory: 8192
103+
aiCore: 3
104+
aiCPU: 1
105+
- name: vir06_1c_16g
106+
memory: 16384
107+
aiCore: 6
108+
aiCPU: 1
109+
- name: vir12_3c_32g
110+
memory: 32768
111+
aiCore: 12
112+
aiCPU: 3
92113
- chipName: 910B3
93114
commonWord: Ascend910B
94115
resourceName: huawei.com/Ascend910B

0 commit comments

Comments
 (0)