mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-10-09 15:55:37 +02:00
make : add --parallel to cmake build command (#4007)
This commit adds the --parallel flag to the cmake build command to speed up compilation. This will hopefully help a little with CI runs even though the are often limited to 2 cores.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
.PHONY: build
|
||||
build:
|
||||
cmake -B build $(CMAKE_ARGS)
|
||||
cmake --build build --config Release
|
||||
cmake --build build --config Release --parallel $(shell nproc)
|
||||
|
||||
# download a few audio samples into folder "./samples":
|
||||
.PHONY: samples
|
||||
@@ -42,7 +42,7 @@ samples:
|
||||
tiny.en tiny base.en base small.en small medium.en medium large-v1 large-v2 large-v3 large-v3-turbo:
|
||||
bash ./models/download-ggml-model.sh $@
|
||||
cmake -B build $(CMAKE_ARGS)
|
||||
cmake --build build --config Release
|
||||
cmake --build build --config Release --parallel $(shell nproc)
|
||||
@echo ""
|
||||
@echo "==============================================="
|
||||
@echo "Running $@ on all samples in ./samples ..."
|
||||
|
||||
Reference in New Issue
Block a user