Skip to content

Commit 844912d

Browse files
committedJul 11, 2024
[CI] Switch from CUDA 12.2 to 12.3
1 parent 40e534a commit 844912d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎.github/workflows/publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
os: [ubuntu-20.04]
4646
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
4747
torch-version: ['2.0.1', '2.1.2', '2.2.2', '2.3.1', '2.4.0.dev20240514']
48-
cuda-version: ['11.8.0', '12.2.2']
48+
cuda-version: ['11.8.0', '12.3.2']
4949
# We need separate wheels that either uses C++11 ABI (-D_GLIBCXX_USE_CXX11_ABI) or not.
5050
# Pytorch wheels currently don't use it, but nvcr images have Pytorch compiled with C++11 ABI.
5151
# Without this we get import error (undefined symbol: _ZN3c105ErrorC2ENS_14SourceLocationESs)
@@ -60,7 +60,7 @@ jobs:
6060
python-version: '3.12'
6161
# Pytorch <= 2.0 only supports CUDA <= 11.8
6262
- torch-version: '2.0.1'
63-
cuda-version: '12.2.2'
63+
cuda-version: '12.3.2'
6464

6565
steps:
6666
- name: Checkout
@@ -145,8 +145,8 @@ jobs:
145145
export PATH=/usr/local/nvidia/bin:/usr/local/nvidia/lib64:$PATH
146146
export LD_LIBRARY_PATH=/usr/local/nvidia/lib64:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
147147
# Limit MAX_JOBS otherwise the github runner goes OOM
148-
# CUDA 11.8 can compile with 2 jobs, but CUDA 12.2 goes OOM
149-
MAX_JOBS=$([ "$MATRIX_CUDA_VERSION" == "122" ] && echo 1 || echo 2) FLASH_ATTENTION_FORCE_BUILD="TRUE" FLASH_ATTENTION_FORCE_CXX11_ABI=${{ matrix.cxx11_abi}} python setup.py bdist_wheel --dist-dir=dist
148+
# CUDA 11.8 can compile with 2 jobs, but CUDA 12.3 goes OOM
149+
MAX_JOBS=$([ "$MATRIX_CUDA_VERSION" == "123" ] && echo 1 || echo 2) FLASH_ATTENTION_FORCE_BUILD="TRUE" FLASH_ATTENTION_FORCE_CXX11_ABI=${{ matrix.cxx11_abi}} python setup.py bdist_wheel --dist-dir=dist
150150
tmpname=cu${MATRIX_CUDA_VERSION}torch${MATRIX_TORCH_VERSION}cxx11abi${{ matrix.cxx11_abi }}
151151
wheel_name=$(ls dist/*whl | xargs -n 1 basename | sed "s/-/+$tmpname-/2")
152152
ls dist/*whl |xargs -I {} mv {} dist/${wheel_name}

‎setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ def get_wheel_url():
269269
# _, cuda_version_raw = get_cuda_bare_metal_version(CUDA_HOME)
270270
torch_cuda_version = parse(torch.version.cuda)
271271
torch_version_raw = parse(torch.__version__)
272-
# For CUDA 11, we only compile for CUDA 11.8, and for CUDA 12 we only compile for CUDA 12.2
272+
# For CUDA 11, we only compile for CUDA 11.8, and for CUDA 12 we only compile for CUDA 12.3
273273
# to save CI time. Minor versions should be compatible.
274-
torch_cuda_version = parse("11.8") if torch_cuda_version.major == 11 else parse("12.2")
274+
torch_cuda_version = parse("11.8") if torch_cuda_version.major == 11 else parse("12.3")
275275
python_version = f"cp{sys.version_info.major}{sys.version_info.minor}"
276276
platform_name = get_platform()
277277
flash_version = get_package_version()

0 commit comments

Comments
 (0)
Failed to load comments.