Skip to content

Commit 5c8d34a

Browse files
authored
Support no privileged mode on CPU for docker and kubernetes deployments (#19241)
Signed-off-by: Tsai, Louie <louie.tsai@intel.com>
1 parent 3c8694e commit 5c8d34a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

csrc/cpu/utils.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ std::string init_cpu_threads_env(const std::string& cpu_ids) {
5454
*(src_mask->maskp) = *(src_mask->maskp) ^ *(mask->maskp);
5555
int page_num = numa_migrate_pages(pid, src_mask, mask);
5656
if (page_num == -1) {
57-
TORCH_CHECK(false,
58-
"numa_migrate_pages failed. errno: " + std::to_string(errno));
57+
TORCH_WARN("numa_migrate_pages failed. errno: " + std::to_string(errno));
5958
}
6059

6160
// restrict memory allocation node.
@@ -105,4 +104,4 @@ std::string init_cpu_threads_env(const std::string& cpu_ids) {
105104

106105
return ss.str();
107106
}
108-
#endif
107+
#endif

0 commit comments

Comments
 (0)