fix: add --allow-unsupported-compiler flag for nvcc

- Add NVCC_APPEND_FLAGS="--allow-unsupported-compiler" to Linux build
  script to support gcc-toolset-14 in manylinux_2_28 containers
- Resolves CUDA 12.6 compilation failure with gcc versions later than 13
This commit is contained in:
Junya Morioka
2026-01-28 01:18:29 +09:00
parent d01b5aee34
commit 78042bb8c2
+1
View File
@@ -92,6 +92,7 @@ cd flash-attention
LOCAL_VERSION_LABEL="cu${MATRIX_CUDA_VERSION}torch${MATRIX_TORCH_VERSION}"
NVCC_THREADS=$NVCC_THREADS MAX_JOBS=$MAX_JOBS \
FLASH_ATTENTION_FORCE_BUILD=TRUE FLASH_ATTN_LOCAL_VERSION=${LOCAL_VERSION_LABEL} \
NVCC_APPEND_FLAGS="--allow-unsupported-compiler" \
time python setup.py bdist_wheel --dist-dir=dist
wheel_name=$(basename $(ls dist/*.whl | head -n 1))
echo "Built wheel: $wheel_name"