Skip to content

Merge branch 'main' into greedy-sorted-seq-loader #44

Merge branch 'main' into greedy-sorted-seq-loader

Merge branch 'main' into greedy-sorted-seq-loader #44

Workflow file for this run

name: GPU CI
on:
workflow_dispatch:
push:
branches:
- main
- "pull-request/[0-9]+"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
gpu-ci:
runs-on: linux-amd64-gpu-p100-latest-1
container:
image: nvcr.io/nvidia/pytorch:23.09-py3
env:
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
options: --shm-size=1G
credentials:
username: $oauthtoken
password: ${{ secrets.NGC_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: |
python -m pip install "torch${{ matrix.torch-version }}"
python -m pip install .[pytorch-dev]
- name: Run tests
run: |
pytest -m singlegpu tests/
#multi-gpu-ci:
# runs-on: linux-amd64-gpu-p100-latest-2
# container:
# image: nvcr.io/nvidia/pytorch:23.09-py3
# env:
# NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
# options: --shm-size=1G
# credentials:
# username: $oauthtoken
# password: ${{ secrets.NGC_TOKEN }}
#
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Install dependencies
# run: |
# python -m pip install "torch${{ matrix.torch-version }}"
# python -m pip install .[pytorch-dev]
# - name: Run tests
# run: |
# pytest -m multigpu tests/