Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
718f25ae
"examples/vscode:/vscode.git/clone" did not exist on "57d2f31f20f124a5fd93077060d2f189faed0eb8"
Unverified
Commit
718f25ae
authored
Sep 08, 2025
by
Keyang Ru
Committed by
GitHub
Sep 08, 2025
Browse files
Explicitly export CMAKE_BUILD_PARALLEL_LEVEL (#10193)
parent
948b01a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sgl-kernel/build.sh
sgl-kernel/build.sh
+1
-1
No files found.
sgl-kernel/build.sh
View file @
718f25ae
...
@@ -15,7 +15,6 @@ echo "ARCH: $ARCH"
...
@@ -15,7 +15,6 @@ echo "ARCH: $ARCH"
if
[
${
ARCH
}
=
"aarch64"
]
;
then
if
[
${
ARCH
}
=
"aarch64"
]
;
then
LIBCUDA_ARCH
=
"sbsa"
LIBCUDA_ARCH
=
"sbsa"
BUILDER_NAME
=
"pytorch/manylinuxaarch64-builder"
BUILDER_NAME
=
"pytorch/manylinuxaarch64-builder"
CMAKE_BUILD_PARALLEL_LEVEL
=
16
else
else
LIBCUDA_ARCH
=
${
ARCH
}
LIBCUDA_ARCH
=
${
ARCH
}
BUILDER_NAME
=
"pytorch/manylinux2_28-builder"
BUILDER_NAME
=
"pytorch/manylinux2_28-builder"
...
@@ -40,6 +39,7 @@ docker run --rm \
...
@@ -40,6 +39,7 @@ docker run --rm \
export CMAKE_VERSION_MAJOR=3.31
export CMAKE_VERSION_MAJOR=3.31
export CMAKE_VERSION_MINOR=1
export CMAKE_VERSION_MINOR=1
# Setting these flags to reduce OOM chance only on ARM
# 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
if [
\"
${
ARCH
}
\"
=
\"
aarch64
\"
]; then
export CUDA_NVCC_FLAGS=
\"
-Xcudafe --threads=2
\"
export CUDA_NVCC_FLAGS=
\"
-Xcudafe --threads=2
\"
export MAKEFLAGS='-j2'
export MAKEFLAGS='-j2'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment