From 517302cd80a666eda3bf047321f47efa21b866f9 Mon Sep 17 00:00:00 2001 From: charliebudd Date: Mon, 28 Nov 2022 15:19:30 +0000 Subject: [PATCH 1/7] updating support matrix --- .../build-pytorch-extension-wheels.yml | 48 ++++++++++---- .github/workflows/cicd.yml | 65 ++++++++++++++----- README.md | 6 +- 3 files changed, 86 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build-pytorch-extension-wheels.yml b/.github/workflows/build-pytorch-extension-wheels.yml index 1734048..b4d9410 100644 --- a/.github/workflows/build-pytorch-extension-wheels.yml +++ b/.github/workflows/build-pytorch-extension-wheels.yml @@ -11,13 +11,13 @@ on: default: "python setup.py bdist_wheel" python-versions: type: string - default: "[3.6, 3.7, 3.8, 3.9]" + default: "[3.7, 3.8, 3.9, '3.10', 3.11]" pytorch-versions: type: string - default: "[1.9, '1.10', 1.11, 1.12]" + default: "['1.10', 1.11, 1.12, 1.13]" cuda-versions: type: string - default: "[10.2, 11.3, 11.6]" + default: "[10.2, 11.1, 11.3, 11.5, 11.6, 11.7]" jobs: setup: @@ -63,18 +63,40 @@ jobs: pytorch-version: ${{ fromJson(inputs.pytorch-versions) }} cuda-version: ${{ fromJson(inputs.cuda-versions) }} exclude: - - pytorch-version: 1.9 - cuda-version: 11.3 - - python-version: 3.6 - pytorch-version: 1.11 - - python-version: 3.6 - pytorch-version: 1.12 - - pytorch-version: 1.9 - cuda-version: 11.6 - pytorch-version: '1.10' - cuda-version: 11.6 + python-version: '3.10' + - pytorch-version: '1.10' + python-version: 3.11 + - pytorch-version: '1.10' + cuda-version: 11.5 + - pytorch-version: '1.10' + cuda-version: 11.6 + - pytorch-version: '1.10' + cuda-version: 11.7 - pytorch-version: 1.11 - cuda-version: 11.6 + python-version: 3.11 + - pytorch-version: 1.11 + cuda-version: 11.1 + - pytorch-version: 1.11 + cuda-version: 11.6 + - pytorch-version: 1.11 + cuda-version: 11.7 + - pytorch-version: 1.12 + python-version: 3.11 + - pytorch-version: 1.12 + cuda-version: 11.1 + - pytorch-version: 1.12 + cuda-version: 11.5 + - pytorch-version: 1.12 + cuda-version: 11.7 + - pytorch-version: 1.13 + cuda-version: 10.2 + - pytorch-version: 1.13 + cuda-version: 11.1 + - pytorch-version: 1.13 + cuda-version: 11.3 + - pytorch-version: 1.13 + cuda-version: 11.5 steps: - name: Checkout Repository uses: actions/checkout@v3 diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index c3d3343..6b186f7 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -34,32 +34,63 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6, 3.7, 3.8, 3.9] - pytorch-version: [1.9, '1.10', 1.11, 1.12] - cuda-version: [10.2, 11.3, 11.6] + python-version: [3.7, 3.8, 3.9, '3.10', 3.11] + pytorch-version: ['1.10', 1.11, 1.12, 1.13] + cuda-version: [10.2, 11.1, 11.3, 11.5, 11.6, 11.7] include: - cuda-version: 10.2 - cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5+PTX" - gcc-version: 8 - - cuda-version: 11.3 + cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5+PTX" # archs taken from... https://en.wikipedia.org/wiki/CUDA#GPUs_supported + gcc-version: 8 # gcc versions taken from... https://gist.github.com/ax3l/9489132#nvcc + - cuda-version: 11.1 cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" gcc-version: 10 - - cuda-version: 11.6 + - cuda-version: 11.3 cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" gcc-version: 10 + - cuda-version: 11.5 + cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6 8.7+PTX" + gcc-version: 11 + - cuda-version: 11.6 + cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6 8.7+PTX" + gcc-version: 11 + - cuda-version: 11.7 + cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6 8.7+PTX" + gcc-version: 11 exclude: - - python-version: 3.6 - pytorch-version: 1.11 - - python-version: 3.6 - pytorch-version: 1.12 - - pytorch-version: 1.9 - cuda-version: 11.3 - - pytorch-version: 1.9 - cuda-version: 11.6 - pytorch-version: '1.10' - cuda-version: 11.6 + python-version: '3.10' + - pytorch-version: '1.10' + python-version: 3.11 + - pytorch-version: '1.10' + cuda-version: 11.5 + - pytorch-version: '1.10' + cuda-version: 11.6 + - pytorch-version: '1.10' + cuda-version: 11.7 - pytorch-version: 1.11 - cuda-version: 11.6 + python-version: 3.11 + - pytorch-version: 1.11 + cuda-version: 11.1 + - pytorch-version: 1.11 + cuda-version: 11.6 + - pytorch-version: 1.11 + cuda-version: 11.7 + - pytorch-version: 1.12 + python-version: 3.11 + - pytorch-version: 1.12 + cuda-version: 11.1 + - pytorch-version: 1.12 + cuda-version: 11.5 + - pytorch-version: 1.12 + cuda-version: 11.7 + - pytorch-version: 1.13 + cuda-version: 10.2 + - pytorch-version: 1.13 + cuda-version: 11.1 + - pytorch-version: 1.13 + cuda-version: 11.3 + - pytorch-version: 1.13 + cuda-version: 11.5 steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/README.md b/README.md index 789d415..049a914 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ Packages built using Torch Extension Builder currently suppport the following ru
- +
- - + +
## Explanation From c2234e2d0821436c888876beb5d67d7ef9ae3eb0 Mon Sep 17 00:00:00 2001 From: charliebudd Date: Mon, 28 Nov 2022 16:12:14 +0000 Subject: [PATCH 2/7] removing cuda arch 8.7 --- .github/workflows/cicd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 6b186f7..f7716b5 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -48,13 +48,13 @@ jobs: cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" gcc-version: 10 - cuda-version: 11.5 - cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6 8.7+PTX" + cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" # 8.7 "should" work for 11.5 and later but appears not to work gcc-version: 11 - cuda-version: 11.6 - cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6 8.7+PTX" + cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" gcc-version: 11 - cuda-version: 11.7 - cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6 8.7+PTX" + cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" gcc-version: 11 exclude: - pytorch-version: '1.10' From bf5983a5676de3ff235b7a8b4b4f6c64dd806230 Mon Sep 17 00:00:00 2001 From: charliebudd Date: Tue, 29 Nov 2022 10:19:48 +0000 Subject: [PATCH 3/7] removing lesser supported cuda versions and sm archs --- .../build-pytorch-extension-wheels.yml | 14 +--------- .github/workflows/cicd.yml | 28 ++++--------------- README.md | 2 +- 3 files changed, 7 insertions(+), 37 deletions(-) diff --git a/.github/workflows/build-pytorch-extension-wheels.yml b/.github/workflows/build-pytorch-extension-wheels.yml index b4d9410..4b0837e 100644 --- a/.github/workflows/build-pytorch-extension-wheels.yml +++ b/.github/workflows/build-pytorch-extension-wheels.yml @@ -17,7 +17,7 @@ on: default: "['1.10', 1.11, 1.12, 1.13]" cuda-versions: type: string - default: "[10.2, 11.1, 11.3, 11.5, 11.6, 11.7]" + default: "[10.2, 11.3, 11.6, 11.7]" jobs: setup: @@ -67,36 +67,24 @@ jobs: python-version: '3.10' - pytorch-version: '1.10' python-version: 3.11 - - pytorch-version: '1.10' - cuda-version: 11.5 - pytorch-version: '1.10' cuda-version: 11.6 - pytorch-version: '1.10' cuda-version: 11.7 - pytorch-version: 1.11 python-version: 3.11 - - pytorch-version: 1.11 - cuda-version: 11.1 - pytorch-version: 1.11 cuda-version: 11.6 - pytorch-version: 1.11 cuda-version: 11.7 - pytorch-version: 1.12 python-version: 3.11 - - pytorch-version: 1.12 - cuda-version: 11.1 - - pytorch-version: 1.12 - cuda-version: 11.5 - pytorch-version: 1.12 cuda-version: 11.7 - pytorch-version: 1.13 cuda-version: 10.2 - - pytorch-version: 1.13 - cuda-version: 11.1 - pytorch-version: 1.13 cuda-version: 11.3 - - pytorch-version: 1.13 - cuda-version: 11.5 steps: - name: Checkout Repository uses: actions/checkout@v3 diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index f7716b5..8bd4e4f 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -36,61 +36,43 @@ jobs: matrix: python-version: [3.7, 3.8, 3.9, '3.10', 3.11] pytorch-version: ['1.10', 1.11, 1.12, 1.13] - cuda-version: [10.2, 11.1, 11.3, 11.5, 11.6, 11.7] + cuda-version: [10.2, 11.3, 11.6, 11.7] include: - cuda-version: 10.2 - cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5+PTX" # archs taken from... https://en.wikipedia.org/wiki/CUDA#GPUs_supported + cuda-arch-list: "6.0 6.1 6.2 7.0 7.2 7.5+PTX" # archs taken from... https://en.wikipedia.org/wiki/CUDA#GPUs_supported gcc-version: 8 # gcc versions taken from... https://gist.github.com/ax3l/9489132#nvcc - - cuda-version: 11.1 - cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" - gcc-version: 10 - cuda-version: 11.3 - cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" + cuda-arch-list: "6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" gcc-version: 10 - - cuda-version: 11.5 - cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" # 8.7 "should" work for 11.5 and later but appears not to work - gcc-version: 11 - cuda-version: 11.6 - cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" + cuda-arch-list: "6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" # 8.7 "should" work for 11.5 and later but appears not to work gcc-version: 11 - cuda-version: 11.7 - cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" + cuda-arch-list: "6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" gcc-version: 11 exclude: - pytorch-version: '1.10' python-version: '3.10' - pytorch-version: '1.10' python-version: 3.11 - - pytorch-version: '1.10' - cuda-version: 11.5 - pytorch-version: '1.10' cuda-version: 11.6 - pytorch-version: '1.10' cuda-version: 11.7 - pytorch-version: 1.11 python-version: 3.11 - - pytorch-version: 1.11 - cuda-version: 11.1 - pytorch-version: 1.11 cuda-version: 11.6 - pytorch-version: 1.11 cuda-version: 11.7 - pytorch-version: 1.12 python-version: 3.11 - - pytorch-version: 1.12 - cuda-version: 11.1 - - pytorch-version: 1.12 - cuda-version: 11.5 - pytorch-version: 1.12 cuda-version: 11.7 - pytorch-version: 1.13 cuda-version: 10.2 - - pytorch-version: 1.13 - cuda-version: 11.1 - pytorch-version: 1.13 cuda-version: 11.3 - - pytorch-version: 1.13 - cuda-version: 11.5 steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/README.md b/README.md index 049a914..76e6b05 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Packages built using Torch Extension Builder currently suppport the following ru
- +
## Explanation From d483d1b7d4d4335859d11044ed1d287a1355e0ff Mon Sep 17 00:00:00 2001 From: charliebudd Date: Wed, 30 Nov 2022 09:42:43 +0000 Subject: [PATCH 4/7] updating test matrix --- .github/workflows/cicd.yml | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 8bd4e4f..83c1b80 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -115,22 +115,32 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6, 3.7, 3.8, 3.9] - pytorch-version: [1.9, '1.10', 1.11, 1.12] - cuda-version: [10.2, 11.3, 11.6] + python-version: [3.7, 3.8, 3.9, '3.10', 3.11] + pytorch-version: ['1.10', 1.11, 1.12, 1.13] + cuda-version: [10.2, 11.3, 11.6, 11.7] exclude: - - python-version: 3.6 - pytorch-version: 1.11 - - python-version: 3.6 - pytorch-version: 1.12 - - pytorch-version: 1.9 - cuda-version: 11.3 - - pytorch-version: 1.9 - cuda-version: 11.6 - pytorch-version: '1.10' - cuda-version: 11.6 + python-version: '3.10' + - pytorch-version: '1.10' + python-version: 3.11 + - pytorch-version: '1.10' + cuda-version: 11.6 + - pytorch-version: '1.10' + cuda-version: 11.7 + - pytorch-version: 1.11 + python-version: 3.11 + - pytorch-version: 1.11 + cuda-version: 11.6 - pytorch-version: 1.11 - cuda-version: 11.6 + cuda-version: 11.7 + - pytorch-version: 1.12 + python-version: 3.11 + - pytorch-version: 1.12 + cuda-version: 11.7 + - pytorch-version: 1.13 + cuda-version: 10.2 + - pytorch-version: 1.13 + cuda-version: 11.3 steps: - name: Checkout Repository uses: actions/checkout@v2 From 40afcf9b256bfb6641d89b0ae55e8d1e91054d15 Mon Sep 17 00:00:00 2001 From: charliebudd Date: Wed, 30 Nov 2022 10:47:06 +0000 Subject: [PATCH 5/7] downgrading cuda 11.6 & 11.7 builds to gcc 10 --- .github/workflows/cicd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 83c1b80..8eaa459 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -46,10 +46,10 @@ jobs: gcc-version: 10 - cuda-version: 11.6 cuda-arch-list: "6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" # 8.7 "should" work for 11.5 and later but appears not to work - gcc-version: 11 + gcc-version: 10 - cuda-version: 11.7 cuda-arch-list: "6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX" - gcc-version: 11 + gcc-version: 10 exclude: - pytorch-version: '1.10' python-version: '3.10' From 3cd3fd12dfed5ad9052dd85ccfdda739f139523f Mon Sep 17 00:00:00 2001 From: charliebudd Date: Fri, 27 Jan 2023 13:55:00 +0000 Subject: [PATCH 6/7] Update utils.py --- manylinux/scripts/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manylinux/scripts/utils.py b/manylinux/scripts/utils.py index d1fc0e4..0cc9d6c 100644 --- a/manylinux/scripts/utils.py +++ b/manylinux/scripts/utils.py @@ -1,9 +1,9 @@ import subprocess def get_ptcu_code(): - from torch import __version__ + from torch.version import __version__, cuda torch_version = "".join(__version__.split(".")[:2]) - cuda_version = __version__.split("+cu")[-1] + cuda_version = "".join(cuda.split("+cu")[-1].split(".")) return "pt" + torch_version + "cu" + cuda_version def unpack_wheel(wheel_path, directory=None): From e2ffbfe537a6e4bdb809405e37da7697fbe9c4be Mon Sep 17 00:00:00 2001 From: charliebudd Date: Mon, 30 Jan 2023 09:23:23 +0000 Subject: [PATCH 7/7] removing depreciated "set-output" command --- .github/workflows/build-pytorch-extension-wheels.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-pytorch-extension-wheels.yml b/.github/workflows/build-pytorch-extension-wheels.yml index 4b0837e..45fefd8 100644 --- a/.github/workflows/build-pytorch-extension-wheels.yml +++ b/.github/workflows/build-pytorch-extension-wheels.yml @@ -45,9 +45,9 @@ jobs: echo "Tag: $TAG" if [[ $TAG == main ]] || [[ $TAG =~ v[0-9] ]]; then - echo "::set-output name=image-tag::-$TAG" + echo "image-tag=-$TAG" >> $GITHUB_OUTPUT else - echo "::set-output name=image-tag::" + echo "image-tag=" >> $GITHUB_OUTPUT fi build-wheels: