Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
5c8d34a4
Unverified
Commit
5c8d34a4
authored
Jun 11, 2025
by
Louie Tsai
Committed by
GitHub
Jun 11, 2025
Browse files
Support no privileged mode on CPU for docker and kubernetes deployments (#19241)
Signed-off-by:
Tsai, Louie
<
louie.tsai@intel.com
>
parent
3c8694ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
csrc/cpu/utils.cpp
csrc/cpu/utils.cpp
+2
-3
No files found.
csrc/cpu/utils.cpp
View file @
5c8d34a4
...
@@ -54,8 +54,7 @@ std::string init_cpu_threads_env(const std::string& cpu_ids) {
...
@@ -54,8 +54,7 @@ std::string init_cpu_threads_env(const std::string& cpu_ids) {
*
(
src_mask
->
maskp
)
=
*
(
src_mask
->
maskp
)
^
*
(
mask
->
maskp
);
*
(
src_mask
->
maskp
)
=
*
(
src_mask
->
maskp
)
^
*
(
mask
->
maskp
);
int
page_num
=
numa_migrate_pages
(
pid
,
src_mask
,
mask
);
int
page_num
=
numa_migrate_pages
(
pid
,
src_mask
,
mask
);
if
(
page_num
==
-
1
)
{
if
(
page_num
==
-
1
)
{
TORCH_CHECK
(
false
,
TORCH_WARN
(
"numa_migrate_pages failed. errno: "
+
std
::
to_string
(
errno
));
"numa_migrate_pages failed. errno: "
+
std
::
to_string
(
errno
));
}
}
// restrict memory allocation node.
// restrict memory allocation node.
...
...
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