Skip to content

Commit 2b8b79f

Browse files
committed
ninja
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 31acc8b commit 2b8b79f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/_build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
path: build-cache.tar.gz
124124
key: build-${{ inputs.release-version }}-${{ inputs.python-version }}-${{ inputs.cuda-version }}-${{ inputs.torch-version }}-${{ inputs.cxx11-abi }}-${{ github.run_number }}-${{ github.run_attempt }}
125125
restore-keys: |
126-
build-${{ inputs.release-version }}-${{ inputs.python-version }}-${{ inputs.cuda-version }}-${{ inputs.torch-version }}-${{ inputs.cxx11-abi }}-${{ github.run_number }}-
126+
build-${{ inputs.release-version }}-${{ inputs.python-version }}-${{ inputs.cuda-version }}-${{ inputs.torch-version }}-${{ inputs.cxx11-abi }}-
127127
128128
- name: Log build logs
129129
run: |
@@ -150,7 +150,13 @@ jobs:
150150
export LD_LIBRARY_PATH=/usr/local/nvidia/lib64:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
151151
# Limit MAX_JOBS otherwise the github runner goes OOM
152152
# nvcc 11.8 can compile with 2 jobs, but nvcc 12.3 goes OOM
153+
if [ -d "build/temp.linux-x86_64-cpython-312" ]; then
154+
cd build/temp.linux-x86_64-cpython-312
155+
ninja
156+
157+
fi
153158
MAX_JOBS=$([ "$MATRIX_CUDA_VERSION" == "129" ] && echo 1 || echo 2) NVCC_THREADS=2 FLASH_ATTENTION_FORCE_BUILD="TRUE" FLASH_ATTENTION_FORCE_CXX11_ABI=${{ inputs.cxx11_abi}} python setup.py bdist_wheel --dist-dir=dist
159+
154160
tmpname=cu${WHEEL_CUDA_VERSION}torch${MATRIX_TORCH_VERSION}cxx11abi${{ inputs.cxx11_abi }}
155161
wheel_name=$(ls dist/*whl | xargs -n 1 basename | sed "s/-/+$tmpname-/2")
156162
ls dist/*whl |xargs -I {} mv {} dist/${wheel_name}

0 commit comments

Comments
 (0)