Skip to content

Commit d3b1cd1

Browse files
committed
[CI] Use MAX_JOBS=2 even with nvcc 12.3
1 parent 61a23ea commit d3b1cd1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/publish.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ jobs:
154154
export PATH=/usr/local/nvidia/bin:/usr/local/nvidia/lib64:$PATH
155155
export LD_LIBRARY_PATH=/usr/local/nvidia/lib64:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
156156
# Limit MAX_JOBS otherwise the github runner goes OOM
157-
# CUDA 11.8 can compile with 2 jobs, but CUDA 12.3 goes OOM
158-
MAX_JOBS=$([ "$MATRIX_CUDA_VERSION" == "123" ] && echo 1 || echo 2) FLASH_ATTENTION_FORCE_BUILD="TRUE" FLASH_ATTENTION_FORCE_CXX11_ABI=${{ matrix.cxx11_abi}} python setup.py bdist_wheel --dist-dir=dist
157+
MAX_JOBS=2 FLASH_ATTENTION_FORCE_BUILD="TRUE" FLASH_ATTENTION_FORCE_CXX11_ABI=${{ matrix.cxx11_abi}} python setup.py bdist_wheel --dist-dir=dist
159158
tmpname=cu${WHEEL_CUDA_VERSION}torch${MATRIX_TORCH_VERSION}cxx11abi${{ matrix.cxx11_abi }}
160159
wheel_name=$(ls dist/*whl | xargs -n 1 basename | sed "s/-/+$tmpname-/2")
161160
ls dist/*whl |xargs -I {} mv {} dist/${wheel_name}

0 commit comments

Comments
 (0)