Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/scripts/setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ echo '::group::Install TorchVision'
pip install -e . -v --no-build-isolation
echo '::endgroup::'

if [[ "${CVCUDA:-}" == "1" ]]; then
echo '::group::Install CV-CUDA'
pip install --progress-bar=off cvcuda-cu12
echo '::endgroup::'
fi

echo '::group::Install torchvision-extra-decoders'
# This can be done after torchvision was built
if [[ "$(uname)" == "Linux" && "$(uname -m)" != "aarch64" ]]; then
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,36 @@ jobs:

./.github/scripts/unittest.sh

unittests-linux-cvcuda:
strategy:
matrix:
python-version:
- "3.10"
runner: ["linux.g5.4xlarge.nvidia.gpu"]
gpu-arch-type: ["cuda"]
gpu-arch-version: ["12.6"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
permissions:
id-token: write
contents: read
with:
repository: pytorch/vision
runner: ${{ matrix.runner }}
gpu-arch-type: ${{ matrix.gpu-arch-type }}
gpu-arch-version: ${{ matrix.gpu-arch-version }}
timeout: 120
test-infra-ref: main
script: |
set -euo pipefail

export PYTHON_VERSION=${{ matrix.python-version }}
export GPU_ARCH_TYPE=${{ matrix.gpu-arch-type }}
export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }}
export CVCUDA="1"

./.github/scripts/unittest.sh

unittests-macos:
strategy:
matrix:
Expand Down