Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CUDA 12.1 workflows #98492

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/scripts/binary_linux_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ NUM_CPUS=$(( $(nproc) - 2 ))
# Defaults here for **binary** linux builds so they can be changed in one place
export MAX_JOBS=${MAX_JOBS:-$(( ${NUM_CPUS} > ${MEMORY_LIMIT_MAX_JOBS} ? ${MEMORY_LIMIT_MAX_JOBS} : ${NUM_CPUS} ))}

if [[ "${DESIRED_CUDA}" =~ cu11[0-9] ]]; then
if [[ "${DESIRED_CUDA}" =~ cu1[1-2][0-9] ]]; then
export BUILD_SPLIT_CUDA="ON"
fi

Expand Down
2 changes: 1 addition & 1 deletion .circleci/scripts/binary_windows_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export SCCACHE_BUCKET=ossci-compiler-cache
export SCCACHE_IGNORE_SERVER_IO_ERROR=1
export VC_YEAR=2022

if [[ "${DESIRED_CUDA}" == *"cu11"* ]]; then
if [[ "${DESIRED_CUDA}" =~ cu1[1-2][0-9] ]]; then
export BUILD_SPLIT_CUDA=ON
fi

Expand Down
11 changes: 10 additions & 1 deletion .github/scripts/generate_binary_build_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from typing import Dict, List, Optional, Tuple


CUDA_ARCHES = ["11.7", "11.8"]
CUDA_ARCHES = ["11.7", "11.8", "12.1"]


ROCM_ARCHES = ["5.3", "5.4.2"]
Expand Down Expand Up @@ -99,6 +99,9 @@ def generate_conda_matrix(os: str) -> List[Dict[str, str]]:
python_versions = FULL_PYTHON_VERSIONS
if os == "linux" or os == "windows":
arches += CUDA_ARCHES
# skip CUDA 12.1 builds on Windows
if os == "windows" and "12.1" in arches:
arches.remove("12.1")
for python_version in python_versions:
# We don't currently build conda packages for rocm
for arch_version in arches:
Expand Down Expand Up @@ -135,6 +138,9 @@ def generate_libtorch_matrix(
arches += ROCM_ARCHES
elif os == "windows":
arches += CUDA_ARCHES
# skip CUDA 12.1 builds on Windows
if "12.1" in arches:
arches.remove("12.1")

if libtorch_variants is None:
libtorch_variants = [
Expand Down Expand Up @@ -199,6 +205,9 @@ def generate_wheels_matrix(
arches += CPU_CXX11_ABI_ARCH + CUDA_ARCHES + ROCM_ARCHES
elif os == "windows":
arches += CUDA_ARCHES
# skip CUDA 12.1 builds on Windows
if "12.1" in arches:
arches.remove("12.1")

ret: List[Dict[str, str]] = []
for python_version in python_versions:
Expand Down
240 changes: 240 additions & 0 deletions .github/workflows/generated-linux-binary-conda-nightly.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.