From 718f25ae6e50de0ed9efbbd895c0cb3bb503abd6 Mon Sep 17 00:00:00 2001 From: Keyang Ru Date: Mon, 8 Sep 2025 22:35:27 -0700 Subject: [PATCH] Explicitly export CMAKE_BUILD_PARALLEL_LEVEL (#10193) --- sgl-kernel/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgl-kernel/build.sh b/sgl-kernel/build.sh index 4b430d30f..0bf5a07ed 100755 --- a/sgl-kernel/build.sh +++ b/sgl-kernel/build.sh @@ -15,7 +15,6 @@ echo "ARCH: $ARCH" if [ ${ARCH} = "aarch64" ]; then LIBCUDA_ARCH="sbsa" BUILDER_NAME="pytorch/manylinuxaarch64-builder" - CMAKE_BUILD_PARALLEL_LEVEL=16 else LIBCUDA_ARCH=${ARCH} BUILDER_NAME="pytorch/manylinux2_28-builder" @@ -40,6 +39,7 @@ docker run --rm \ export CMAKE_VERSION_MAJOR=3.31 export CMAKE_VERSION_MINOR=1 # Setting these flags to reduce OOM chance only on ARM + export CMAKE_BUILD_PARALLEL_LEVEL=$(( $(nproc)/3 < 48 ? $(nproc)/3 : 48 )) if [ \"${ARCH}\" = \"aarch64\" ]; then export CUDA_NVCC_FLAGS=\"-Xcudafe --threads=2\" export MAKEFLAGS='-j2'