Skip to content

Commit 98c40e7

Browse files
authored
Remove unused args in workflows (#60)
1 parent cff188a commit 98c40e7

File tree

5 files changed

+0
-59
lines changed

5 files changed

+0
-59
lines changed

.github/workflows/_ascend_npu_benchmark.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ on:
1111
required: true
1212
type: string
1313
description: "The docker image which will be loaded"
14-
device:
15-
required: true
16-
type: string
17-
description: "The device selected to run on"
1814
torch-artifact:
1915
required: false
2016
type: string
@@ -28,13 +24,6 @@ on:
2824
description: "A token used to create a pull request"
2925
required: true
3026

31-
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
32-
# declared as "shell: bash -el {0}" on steps that need to be properly activated.
33-
# It's used to activate ascend-toolkit environment variables.
34-
defaults:
35-
run:
36-
shell: bash -el {0}
37-
3827
jobs:
3928
benchmark:
4029
name: run benchmarks for torch_npu

.github/workflows/_ascend_npu_build_torch.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ on:
2626
description: "The distribution artifact name of torch"
2727
value: ${{ jobs.build.outputs.dist-name }}
2828

29-
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
30-
# declared as "shell: bash -el {0}" on steps that need to be properly activated.
31-
# It's used to activate ascend-toolkit environment variables.
32-
defaults:
33-
run:
34-
shell: bash -el {0}
35-
3629
jobs:
3730
build:
3831
name: build torch for ${{ inputs.pr-number && format('#{0}', inputs.pr-number) || inputs.ref }}

.github/workflows/_ascend_npu_build_torch_npu.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ 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"
1814
torch-artifact:
1915
required: false
2016
type: string
@@ -24,13 +20,6 @@ on:
2420
description: "The distribution artifact name of torch_npu"
2521
value: ${{ jobs.build.outputs.dist-name }}
2622

27-
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
28-
# declared as "shell: bash -el {0}" on steps that need to be properly activated.
29-
# It's used to activate ascend-toolkit environment variables.
30-
defaults:
31-
run:
32-
shell: bash -el {0}
33-
3423
jobs:
3524
build:
3625
name: build torch_npu

.github/workflows/_ascend_npu_ut.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ on:
1111
required: true
1212
type: string
1313
description: "The docker image which will be loaded"
14-
device:
15-
required: true
16-
type: string
17-
description: "The device selected to run on"
1814
torch-artifact:
1915
required: false
2016
type: string
@@ -24,13 +20,6 @@ on:
2420
type: string
2521
description: "The distribution artifact name of torch_npu"
2622

27-
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
28-
# declared as "shell: bash -el {0}" on steps that need to be properly activated.
29-
# It's used to activate ascend-toolkit environment variables.
30-
defaults:
31-
run:
32-
shell: bash -el {0}
33-
3423
jobs:
3524
test:
3625
name: test torch_npu

.github/workflows/ascend_npu_test.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,6 @@ on:
5656
- ascendai/cann:latest
5757
default: "ascendai/cann:latest"
5858
description: "The docker image which will be loaded"
59-
device:
60-
required: true
61-
type: choice
62-
options:
63-
- /dev/davinci1
64-
- /dev/davinci2
65-
- /dev/davinci3
66-
- /dev/davinci4
67-
- /dev/davinci5
68-
- /dev/davinci6
69-
- /dev/davinci7
70-
- /dev/davinci8
71-
default: "/dev/davinci5"
72-
description: "The device selected to run on"
7359

7460
# Only cancel the previous runs when triggered by a pull_request event
7561
#
@@ -98,7 +84,6 @@ jobs:
9884
id: set-env
9985
run: |
10086
echo "runner=${{ github.event.inputs.runner || 'linux-arm64-npu-1' }}" >> $GITHUB_OUTPUT
101-
echo "device=${{ github.event.inputs.device || '/dev/davinci5' }}" >> $GITHUB_OUTPUT
10287
echo "image=${{ github.event.inputs.image || 'ascendai/cann:latest' }}" >> $GITHUB_OUTPUT
10388
10489
# TODO(shink): List ghstack PR's ref
@@ -131,7 +116,6 @@ jobs:
131116
with:
132117
runner: ${{ needs.prepare.outputs.runner }}
133118
image: ${{ needs.prepare.outputs.image }}
134-
device: ${{ needs.prepare.outputs.device }}
135119
torch-artifact: ${{ needs.build-torch.outputs.torch-artifact }}
136120

137121
test:
@@ -147,7 +131,6 @@ jobs:
147131
with:
148132
runner: ${{ needs.prepare.outputs.runner }}
149133
image: ${{ needs.prepare.outputs.image }}
150-
device: ${{ needs.prepare.outputs.device }}
151134
torch-artifact: ${{ needs.build-torch.outputs.torch-artifact }}
152135
torch-npu-artifact: ${{ needs.build.outputs.torch-npu-artifact }}
153136

@@ -157,15 +140,13 @@ jobs:
157140
- prepare
158141
- build-torch
159142
- build
160-
- test
161143
if: |
162144
!cancelled() && github.event_name != 'repository_dispatch' &&
163145
(success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
164146
uses: ./.github/workflows/_ascend_npu_benchmark.yml
165147
with:
166148
runner: ${{ needs.prepare.outputs.runner }}
167149
image: ${{ needs.prepare.outputs.image }}
168-
device: ${{ needs.prepare.outputs.device }}
169150
torch-artifact: ${{ needs.build-torch.outputs.torch-artifact }}
170151
torch-npu-artifact: ${{ needs.build.outputs.torch-npu-artifact }}
171152
secrets:

0 commit comments

Comments
 (0)