Skip to content

Commit 073b542

Browse files
authored
Merge pull request #841 from docker/llamacpp-cuda-build
ci(cuda): limit parallel jobs to avoid OOM during CUDA build
2 parents 5842c23 + 3f8b47a commit 073b542

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

llamacpp/native/cuda.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN echo "-B build \
3737
-GNinja \
3838
-S ." > cmake-flags
3939
RUN cmake $(cat cmake-flags)
40-
RUN cmake --build build --config Release
40+
RUN cmake --build build --config Release -j$(nproc --ignore=2)
4141
RUN cmake --install build --config Release --prefix install
4242

4343
RUN rm install/bin/*.py

0 commit comments

Comments
 (0)