diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d825649..4cd66b0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -44,8 +44,8 @@ jobs: # manylinux docker image, but I haven't figured out how to install CUDA on manylinux. os: [ubuntu-20.04] python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] - torch-version: ['1.12.1', '1.13.1', '2.0.1', '2.1.1', '2.2.0.dev20231106'] - cuda-version: ['11.8.0', '12.2.0'] + torch-version: ['1.12.1', '1.13.1', '2.0.1', '2.1.2', '2.2.0'] + cuda-version: ['11.8.0', '12.2.2'] # We need separate wheels that either uses C++11 ABI (-D_GLIBCXX_USE_CXX11_ABI) or not. # Pytorch wheels currently don't use it, but nvcr images have Pytorch compiled with C++11 ABI. # Without this we get import error (undefined symbol: _ZN3c105ErrorC2ENS_14SourceLocationESs) @@ -58,9 +58,9 @@ jobs: # Pytorch >= 2.0 only supports Python >= 3.8 - torch-version: '2.0.1' python-version: '3.7' - - torch-version: '2.1.1' + - torch-version: '2.1.2' python-version: '3.7' - - torch-version: '2.2.0.dev20231106' + - torch-version: '2.2.0' python-version: '3.7' # Pytorch <= 2.0 only supports CUDA <= 11.8 - torch-version: '1.12.1' @@ -101,7 +101,7 @@ jobs: - name: Install CUDA ${{ matrix.cuda-version }} if: ${{ matrix.cuda-version != 'cpu' }} - uses: Jimver/cuda-toolkit@v0.2.11 + uses: Jimver/cuda-toolkit@v0.2.14 id: cuda-toolkit with: cuda: ${{ matrix.cuda-version }} diff --git a/setup.py b/setup.py index 23b6625..a9b5cea 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ -# Copyright (c) 2023, Tri Dao. +# Copyright (c) 2024, Tri Dao. + import sys import warnings import os @@ -17,12 +18,7 @@ from wheel.bdist_wheel import bdist_wheel as _bdist_wheel import torch -from torch.utils.cpp_extension import ( - BuildExtension, - CppExtension, - CUDAExtension, - CUDA_HOME, -) +from torch.utils.cpp_extension import BuildExtension, CppExtension, CUDAExtension, CUDA_HOME with open("README.md", "r", encoding="utf-8") as fh: