Skip to content

Commit b955268

Browse files
authored
fix prebuild on cuda12.8 (#3857)
1 parent a4adfb1 commit b955268

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

builder/manywheel/Dockerfile_2014

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
# syntax = docker/dockerfile:experimental
2+
# WARNING: CentOS 7 is out of date since 6/30/2024, we should use the following one in the future
3+
# FROM quay.io/pypa/manylinux_2_28_x86_64 as base
24
FROM quay.io/pypa/manylinux2014_x86_64 as base
3-
ARG DEVTOOLSET_VERSION=9
45
ARG BASE_CUDA_VERSION=11.8
56

67
ENV LC_ALL en_US.UTF-8
78
ENV LANG en_US.UTF-8
89
ENV LANGUAGE en_US.UTF-8
910

10-
# gcc/g++
11-
RUN yum install -y \
12-
devtoolset-${DEVTOOLSET_VERSION}-gcc \
13-
devtoolset-${DEVTOOLSET_VERSION}-gcc-c++ \
14-
devtoolset-${DEVTOOLSET_VERSION}-gcc-gfortran \
15-
devtoolset-${DEVTOOLSET_VERSION}-binutils \
11+
RUN sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/CentOS-*.repo && \
12+
sed -i 's|^#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' /etc/yum.repos.d/CentOS-*.repo && \
13+
yum install -y \
1614
wget \
1715
rapidjson-devel \
1816
glog-devel && \
1917
yum clean all
2018

21-
ENV PATH=/opt/rh/devtoolset-${DEVTOOLSET_VERSION}/root/usr/bin:$PATH
22-
ENV LD_LIBRARY_PATH=/opt/rh/devtoolset-${DEVTOOLSET_VERSION}/root/usr/lib64:/opt/rh/devtoolset-${DEVTOOLSET_VERSION}/root/usr/lib:$LD_LIBRARY_PATH
19+
ENV LD_LIBRARY_PATH=/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib:$LD_LIBRARY_PATH
2320

2421
FROM base as cuda
2522
COPY manywheel/scripts/install_cuda.sh /tmp/install_cuda.sh

builder/manywheel/build_all_lmdeploy_builders.sh

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

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

7-
for cuda_version in 11.8 12.4; do
7+
for cuda_version in 11.8 12.4 12.8; do
88
MANY_LINUX_VERSION=2014 GPU_ARCH_VERSION="${cuda_version}" "${TOPDIR}/manywheel/build_lmdeploy_builder.sh"
99
done

builder/manywheel/build_all_wheel.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)/builder
66

7-
CUDA_VER=${CUDA_VER:-12.4}
7+
CUDA_VER=${CUDA_VER:-12.8}
88

99
PLAT_NAME=manylinux2014_x86_64
1010
for cuver in ${CUDA_VER}; do

src/turbomind/kernels/gemm/tma.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ PFN_cuTensorMapEncodeTiled get_cuTensorMapEncodeTiled()
1616
cudaDriverEntryPointQueryResult driver_status;
1717
void* cuTensorMapEncodeTiled_ptr = nullptr;
1818

19-
#if CUDA_VERSION >= 12050
19+
// https://github.com/NVIDIA/cutlass/pull/2086
20+
#if CUDA_VERSION >= 13000
2021
cudaGetDriverEntryPointByVersion(
2122
"cuTensorMapEncodeTiled", &cuTensorMapEncodeTiled_ptr, 12000, cudaEnableDefault, &driver_status);
2223
#else

0 commit comments

Comments
 (0)