Skip to content

Commit a4730f3

Browse files
committed
update
1 parent 9d4a5c9 commit a4730f3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/_ascend_npu_build_torch_npu.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
required: true
1212
type: string
1313
description: 'The docker image which will be used to build'
14+
device:
15+
required: true
16+
type: string
17+
description: 'The device selected to run on'
1418
torch-artifact:
1519
required: false
1620
type: string
@@ -33,8 +37,18 @@ jobs:
3337
runs-on: ${{ inputs.runner }}
3438
container:
3539
image: ${{ inputs.image }}
40+
volumes:
41+
- /usr/local/dcmi:/usr/local/dcmi
42+
- /usr/local/bin/npu-smi:/usr/local/bin/npu-smi
43+
- /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/
44+
- /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info
45+
- /etc/ascend_install.info:/etc/ascend_install.info
3646
options: >-
3747
--network host
48+
--device ${{ inputs.device }}
49+
--device /dev/davinci_manager
50+
--device /dev/devmm_svm
51+
--device /dev/hisi_hdc
3852
env:
3953
HTTP_PROXY: http://127.0.0.1:10809
4054
HTTPS_PROXY: http://127.0.0.1:10809

0 commit comments

Comments
 (0)