π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Improve cuda ci workflow speed (#975)
Edgar Riba31a6ce912590
diff --git a/.github/workflows/tests_cuda.yml b/.github/workflows/tests_cuda.ymlindex 03c1e8e5e..78d6d5b33 100644--- a/.github/workflows/tests_cuda.yml+++ b/.github/workflows/tests_cuda.yml@@ -5,33 +5,27 @@ on:branches:- masterpull_request:+ branches:+ - masterschedule:- 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 allruns-on: [self-hosted, Linux, x64]strategy:fail-fast: falsematrix: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 dependenciesshell: bash -l {0}run: |- conda install pytorch=${{ matrix.pytorch-version }} cudatoolkit=${{ matrix.cuda-version }} -c pytorchpip install -r requirements-dev.txtpython setup.py install- name: Run Testsdiff --git a/.github/workflows/tests_cuda_versions.yml b/.github/workflows/tests_cuda_versions.ymlindex 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 allruns-on: [self-hosted, Linux, x64]strategy:fail-fast: falsematrix: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 dependenciesshell: bash -l {0}run: |- conda install pytorch=${{ matrix.pytorch-version }} cudatoolkit=${{ matrix.cuda-version }} -c pytorchpip install -r requirements-dev.txtpython setup.py install- name: Run Tests