GPU concurrency #1225
This file contains hidden or 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: Runner CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| check-cuda: | |
| runs-on: [nvidia-docker-b200-8-x86-64] | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| version: "latest" | |
| - name: Setup Python environment | |
| run: | | |
| uv venv .venv | |
| echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV | |
| echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
| uv pip install pytest | |
| - name: Install package | |
| shell: bash | |
| run: uv pip install -e . | |
| - name: Run script | |
| shell: bash | |
| run: pytest scripts/ci_test_cuda.py | |
| env: | |
| CUDA_VISIBLE_DEVICES: 0 | |
| check-pytorch: | |
| runs-on: [nvidia-docker-b200-8-x86-64] | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| version: "latest" | |
| - name: Setup Python environment | |
| run: | | |
| uv venv .venv | |
| echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV | |
| echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
| uv pip install numpy torch setuptools ninja pytest | |
| - name: Install package | |
| shell: bash | |
| run: uv pip install -e . | |
| - name: Run script | |
| shell: bash | |
| run: pytest scripts/ci_test_python.py | |
| env: | |
| CUDA_VISIBLE_DEVICES: 0 |