Open
Description
Describe the bug
intel-extension-for-pytorch/csrc/cpu/runtime/CPUPool.cpp is written such that it will fail on systems with more than 1024 cpus. For example:
cpu_set_t main_thread_pre_set;
CPU_ZERO(&main_thread_pre_set);
if (sched_getaffinity(0, sizeof(cpu_set_t), &main_thread_pre_set) != 0) {
throw std::runtime_error("Fail to get the thread affinity information");
}
Needs to be done using dynamically sized CPU sets (man CPU_SET(3)).
This is the first place to choke, but I suspect there may be additional code that needs correction.
Versions
v2.7.0+cpu (and others?)
Metadata
Metadata
Assignees
Labels
No labels