Skip to content

Commit 56ff218

Browse files
committed
ci: quote TORCH_CUDA_ARCH_LIST in CIBW_ENVIRONMENT (bashlex ; parse)
1 parent 0aee99a commit 56ff218

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/wheels.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ jobs:
5656
# Install the CUDA 12.8 toolkit (nvcc + cudart headers) into the build
5757
# container once. Script lives in .github/ (scripts/ is .gitignore'd).
5858
CIBW_BEFORE_ALL_LINUX: bash {project}/.github/install_cuda_el8.sh 12-8
59+
# NB: quote the arch list — cibuildwheel parses CIBW_ENVIRONMENT with
60+
# bashlex, so unquoted ';' would be read as a command separator and
61+
# error out ("Malformed environment") before any build starts.
5962
CIBW_ENVIRONMENT_LINUX: >
6063
SWEEP_BUILD_CUDA=1
61-
TORCH_CUDA_ARCH_LIST=7.0;7.5;8.0;8.6;8.9;9.0
64+
TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6;8.9;9.0"
6265
CUDA_HOME=/usr/local/cuda
6366
PATH=/usr/local/cuda/bin:$PATH
6467
# Build against the exact torch users resolve at install time.

0 commit comments

Comments
 (0)