Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Improve cuda ci workflow speed (#975)

Edgar Riba31a6ce912590
diff --git a/.github/workflows/tests_cuda.yml b/.github/workflows/tests_cuda.yml
index 03c1e8e5e..78d6d5b33 100644
--- a/.github/workflows/tests_cuda.yml
+++ b/.github/workflows/tests_cuda.yml
@@ -5,33 +5,27 @@ on:
branches:
- master
pull_request:
+ branches:
+ - master
schedule:
- cron: "0 0 * * *"
jobs:
tests-cuda:
container:
- image: nvcr.io/nvidia/pytorch:20.03-py3
+ image: pytorchlightning/pytorch_lightning:base-cuda-py${{ matrix.python-version }}-torch${{ matrix.pytorch-version }}
options: --gpus all
runs-on: [self-hosted, Linux, x64]
strategy:
fail-fast: false
matrix:
python-version: [3.7]
- pytorch-version: [1.8.0]
- cuda-version: [10.2]
+ pytorch-version: [1.8]
steps:
- uses: actions/checkout@v2
- - name: Setup conda dependencies
- uses: conda-incubator/setup-miniconda@v2
- with:
- miniconda-version: "latest"
- auto-update-conda: true
- python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0}
run: |
- conda install pytorch=${{ matrix.pytorch-version }} cudatoolkit=${{ matrix.cuda-version }} -c pytorch
pip install -r requirements-dev.txt
python setup.py install
- name: Run Tests
diff --git a/.github/workflows/tests_cuda_versions.yml b/.github/workflows/tests_cuda_versions.yml
index af1b8051f..45b532fc7 100644
--- a/.github/workflows/tests_cuda_versions.yml
+++ b/.github/workflows/tests_cuda_versions.yml
@@ -11,31 +11,19 @@ on:
jobs:
tests-cuda:
container:
- image: nvcr.io/nvidia/pytorch:20.03-py3
+ image: pytorchlightning/pytorch_lightning:base-cuda-py${{ matrix.python-version }}-torch${{ matrix.pytorch-version }}
options: --gpus all
runs-on: [self-hosted, Linux, x64]
strategy:
fail-fast: false
matrix:
python-version: [3.7]
- pytorch-version: [1.6.0, 1.7.0, 1.7.1, 1.8.0]
- cuda-version: [9.2, 10.1, 10.2]
- exclude:
- - python-version: 3.7
- pytorch-version: 1.8.0
- cuda-version: 9.2
+ pytorch-version: [1.6, 1.7, 1.8]
steps:
- uses: actions/checkout@v2
- - name: Setup conda dependencies
- uses: conda-incubator/setup-miniconda@v2
- with:
- miniconda-version: "latest"
- auto-update-conda: true
- python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0}
run: |
- conda install pytorch=${{ matrix.pytorch-version }} cudatoolkit=${{ matrix.cuda-version }} -c pytorch
pip install -r requirements-dev.txt
python setup.py install
- name: Run Tests