Skip to content

Commit d2fed95

Browse files
authored
[Acend NPU] Let abi=1 when building torch_npu (#40)
1 parent 4df3294 commit d2fed95

File tree

4 files changed

+3
-21
lines changed

4 files changed

+3
-21
lines changed

.github/workflows/_ascend_npu_benchmark.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ jobs:
3939
test:
4040
name: run benchmarks for torch_npu
4141
runs-on: ${{ inputs.runner }}
42-
env:
43-
HF_ENDPOINT: https://hf-mirror.com
4442
container:
4543
image: ${{ inputs.image }}
4644
volumes:
@@ -56,10 +54,7 @@ jobs:
5654
--device /dev/devmm_svm
5755
--device /dev/hisi_hdc
5856
env:
59-
HTTP_PROXY: http://127.0.0.1:10809
60-
HTTPS_PROXY: http://127.0.0.1:10809
61-
ALL_PROXY: socks5://127.0.0.1:10808
62-
SOCKS_PROXY: socks5://127.0.0.1:10808
57+
HF_ENDPOINT: https://hf-mirror.com
6358
steps:
6459
- name: Show NPU info
6560
run: |

.github/workflows/_ascend_npu_build_torch.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ jobs:
4141
image: ${{ inputs.image }}
4242
options: >-
4343
--network host
44-
env:
45-
HTTP_PROXY: http://127.0.0.1:10809
46-
HTTPS_PROXY: http://127.0.0.1:10809
47-
ALL_PROXY: socks5://127.0.0.1:10808
48-
SOCKS_PROXY: socks5://127.0.0.1:10808
4944
outputs:
5045
dist-name: ${{ steps.list-dist.outputs.dist-name }}
5146
steps:

.github/workflows/_ascend_npu_build_torch_npu.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ jobs:
4949
--device /dev/davinci_manager
5050
--device /dev/devmm_svm
5151
--device /dev/hisi_hdc
52-
env:
53-
HTTP_PROXY: http://127.0.0.1:10809
54-
HTTPS_PROXY: http://127.0.0.1:10809
55-
ALL_PROXY: socks5://127.0.0.1:10808
56-
SOCKS_PROXY: socks5://127.0.0.1:10808
5752
outputs:
5853
dist-name: ${{ steps.list-dist.outputs.dist-name }}
5954
steps:
@@ -121,6 +116,8 @@ jobs:
121116
working-directory: torch_npu
122117
run: |
123118
bash ci/build.sh --python=${{ steps.list-py-version.outputs.py-version }}
119+
env:
120+
_GLIBCXX_USE_CXX11_ABI: 1 # https://gitee.com/ascend/pytorch/issues/IBJFZY
124121

125122
- name: List distribution package
126123
id: list-dist

.github/workflows/_ascend_npu_ut.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ jobs:
4949
--device /dev/davinci_manager
5050
--device /dev/devmm_svm
5151
--device /dev/hisi_hdc
52-
env:
53-
HTTP_PROXY: http://127.0.0.1:10809
54-
HTTPS_PROXY: http://127.0.0.1:10809
55-
ALL_PROXY: socks5://127.0.0.1:10808
56-
SOCKS_PROXY: socks5://127.0.0.1:10808
5752
steps:
5853
- name: Show NPU info
5954
run: |

0 commit comments

Comments
 (0)