mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 01:05:28 +08:00
Support no privileged mode on CPU for docker and kubernetes deployments (#19241)
Signed-off-by: Tsai, Louie <louie.tsai@intel.com>
This commit is contained in:
parent
3c8694eabe
commit
5c8d34a42c
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user