Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 7740097

Browse files
authored
build libtorch and manywheel for 12.1 (#1373)
1 parent 2432b6c commit 7740097

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/build-libtorch-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-22.04
2929
strategy:
3030
matrix:
31-
cuda_version: ["11.8", "11.7"]
31+
cuda_version: ["12.1", "11.8", "11.7"]
3232
env:
3333
GPU_ARCH_TYPE: cuda
3434
GPU_ARCH_VERSION: ${{ matrix.cuda_version }}

.github/workflows/build-manywheel-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-22.04
3131
strategy:
3232
matrix:
33-
cuda_version: ["11.8", "11.7"]
33+
cuda_version: ["12.1", "11.8", "11.7"]
3434
env:
3535
GPU_ARCH_TYPE: cuda
3636
GPU_ARCH_VERSION: ${{ matrix.cuda_version }}

libtorch/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ FROM cuda as cuda11.8
5252
RUN bash ./install_cuda.sh 11.8
5353
RUN bash ./install_magma.sh 11.8
5454

55+
FROM cuda as cuda12.1
56+
RUN bash ./install_cuda.sh 12.1
57+
RUN bash ./install_magma.sh 12.1
58+
5559
FROM cpu as rocm
5660
ARG PYTORCH_ROCM_ARCH
5761
ENV PYTORCH_ROCM_ARCH ${PYTORCH_ROCM_ARCH}

libtorch/build_all_docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eou pipefail
44

55
TOPDIR=$(git rev-parse --show-toplevel)
66

7-
for cuda_version in 11.8 11.7; do
7+
for cuda_version in 12.1 11.8 11.7; do
88
GPU_ARCH_TYPE=cuda GPU_ARCH_VERSION="${cuda_version}" "${TOPDIR}/libtorch/build_docker.sh"
99
done
1010

0 commit comments

Comments
 (0)