Skip to content

Commit 3bb6560

Browse files
ptrblckatalman
andauthored
build libtorch and manywheel for 11.8 (#1190)
* build libtorch and manywheel for 11.8 * Update common/install_magma.sh * use magma-cuda build-1 by default; remove CUDA 10.2-11.5 builds Co-authored-by: Andrey Talman <[email protected]>
1 parent 6649435 commit 3bb6560

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
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-18.04
2929
strategy:
3030
matrix:
31-
cuda_version: ["11.7", "11.6"]
31+
cuda_version: ["11.8", "11.7", "11.6"]
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
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-18.04
2929
strategy:
3030
matrix:
31-
cuda_version: ["11.7", "11.6"]
31+
cuda_version: ["11.8", "11.7", "11.6"]
3232
env:
3333
GPU_ARCH_TYPE: cuda
3434
GPU_ARCH_VERSION: ${{ matrix.cuda_version }}

common/install_magma.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,10 @@ MAGMA_VERSION="2.5.2"
77
function do_install() {
88
cuda_version=$1
99
cuda_version_nodot=${1/./}
10-
11-
if [[ ${cuda_version_nodot} == 116 ]]; then
12-
MAGMA_VERSION="2.6.1"
13-
magma_archive="magma-cuda${cuda_version_nodot}-${MAGMA_VERSION}-0.tar.bz2"
14-
elif [[ ${cuda_version_nodot} == 117 ]]; then
15-
MAGMA_VERSION="2.6.1"
16-
magma_archive="magma-cuda${cuda_version_nodot}-${MAGMA_VERSION}-0.tar.bz2"
17-
else
18-
magma_archive="magma-cuda${cuda_version_nodot}-${MAGMA_VERSION}-1.tar.bz2"
19-
fi
20-
10+
11+
MAGMA_VERSION="2.6.1"
12+
magma_archive="magma-cuda${cuda_version_nodot}-${MAGMA_VERSION}-1.tar.bz2"
13+
2114
cuda_dir="/usr/local/cuda-${cuda_version}"
2215
(
2316
set -x

libtorch/Dockerfile

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

55+
FROM cuda as cuda11.8
56+
RUN bash ./install_cuda.sh 11.8
57+
RUN bash ./install_magma.sh 11.8
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.7 11.6; do
7+
for cuda_version in 11.8 11.7 11.6; do
88
GPU_ARCH_TYPE=cuda GPU_ARCH_VERSION="${cuda_version}" "${TOPDIR}/libtorch/build_docker.sh"
99
done
1010

0 commit comments

Comments
 (0)