Skip to content

Commit 8424e99

Browse files
committed
[BugFix] fix CIBW environment on Linux
1 parent 8a23c08 commit 8424e99

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

pyproject.toml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,25 +172,29 @@ build-frontend = "build"
172172
environment = { PYTHONDEVMODE = "1", PYTHONUNBUFFERED = "1" }
173173
environment-pass = [
174174
"CUDA_VERSION",
175+
"NO_VERSION_LABEL",
176+
"NO_TOOLCHAIN_VERSION",
177+
"NO_GIT_VERSION",
175178
"COLUMNS",
179+
"CMAKE_GENERATOR",
180+
"CMAKE_BUILD_PARALLEL_LEVEL",
176181
"FORCE_COLOR",
177182
"CLICOLOR_FORCE",
178183
]
179184
before-build = "env -0 | sort -z | tr '\\0' '\\n'"
180185
windows.before-build = "set"
181-
# Pin to glibc 2.17 for x86 and 2.28 for aarch64 for now
182-
manylinux-x86_64-image = "manylinux2014" # CentOS 7
183-
manylinux-aarch64-image = "manylinux_2_28" # AlmaLinux 8
184186
test-command = [
185187
"python -c 'import tilelang; print(tilelang.__version__)'",
186188
]
187189

188190
[tool.cibuildwheel.linux]
189-
environment = { PYTHONDEVMODE = "1", PYTHONUNBUFFERED = "1", PATH = "/usr/local/cuda/bin:$PATH" }
190-
repair-wheel-command = [
191-
"auditwheel -v repair --exclude libtvm_ffi.so --exclude libcuda.so.1 --exclude '/usr/local/cuda*' -w {dest_dir} {wheel}",
192-
"pipx run abi3audit --verbose --strict {wheel}",
193-
]
191+
environment.PYTHONDEVMODE = "1"
192+
environment.PYTHONUNBUFFERED = "1"
193+
environment.PATH = "/usr/local/cuda/bin:$PATH"
194+
environment.LD_LIBRARY_PATH = "/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH"
195+
# Pin to glibc 2.17 for x86 and 2.28 for aarch64 for now
196+
manylinux-x86_64-image = "manylinux2014" # CentOS 7
197+
manylinux-aarch64-image = "manylinux_2_28" # AlmaLinux 8
194198
# Install CUDA runtime and stub driver library
195199
# manylinux_2_28 uses gcc 14, which needs CUDA 12.8
196200
before-all = """
@@ -213,8 +217,12 @@ esac
213217
214218
cudaver="$(echo "${CUDA_VERSION:-"12.4"}" | cut -d '.' -f-2)"
215219
v="${cudaver//./-}"
216-
yum install -y "cuda-minimal-build-${v}" "cuda-driver-devel-${v}" "cuda-nvrtc-devel-${v}"
220+
yum install -y "cuda-minimal-build-${v}" "cuda-driver-devel-${v}" "cuda-nvrtc-devel-${v}" nvidia-driver-cuda-libs
217221
"""
222+
repair-wheel-command = [
223+
"auditwheel -v repair --exclude libtvm_ffi.so --exclude libcuda.so.1 --exclude '/usr/local/cuda*' -w {dest_dir} {wheel}",
224+
"pipx run abi3audit --verbose --strict {wheel}",
225+
]
218226

219227
[tool.cibuildwheel.macos]
220228
repair-wheel-command = [

0 commit comments

Comments
 (0)