[Enhancement] Add torch mluops check before call mluOpsxxx interface … #1308
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build_pat | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
- 'README_zh-CN.md' | |
- 'docs/**' | |
- 'examples/**' | |
- '.dev_scripts/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
MMCV_WITH_OPS: 1 | |
jobs: | |
build_parrots: | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/cokedong/parrots:pat0.21.0a0_cuda11 | |
credentials: | |
username: cokedong | |
password: ${{ secrets.PARROTS_CI_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build and install | |
run: | | |
source /usr/local/env/pat_latest | |
MMCV_WITH_OPS=1 pip install -e . -v |