From 8a97477ae7bcb4a7c87c6fc8e3950e63d8f15fbd Mon Sep 17 00:00:00 2001 From: Houchen Li Date: Mon, 26 May 2025 13:12:00 +0800 Subject: [PATCH] involve parallel compiling --- setup_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup_env.py b/setup_env.py index f15d65f4..07e5d653 100644 --- a/setup_env.py +++ b/setup_env.py @@ -213,7 +213,7 @@ def compile(): logging.info("Compiling the code using CMake.") run_command(["cmake", "-B", "build", *COMPILER_EXTRA_ARGS[arch], *OS_EXTRA_ARGS.get(platform.system(), []), "-DCMAKE_C_COMPILER=clang", "-DCMAKE_CXX_COMPILER=clang++"], log_step="generate_build_files") # run_command(["cmake", "--build", "build", "--target", "llama-cli", "--config", "Release"]) - run_command(["cmake", "--build", "build", "--config", "Release"], log_step="compile") + run_command(["cmake", "--build", "build", "--config", "Release", "--parallel", str(os.cpu_count())], log_step="compile") def main(): setup_gguf()