You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With OpenVINO compiled with -DTHREADING=SEQ, when running inference on a machine with 2 (and probably more) NUMA nodes, the calling thread's CPU affinity mask gets changed. This doesn't happen on a machine with just 1 NUMA node. Setting ov::hint::enable_cpu_pinning(false) doesn't help. OpenVINO should not change the affinity of threads that don't belong to it.
Step-by-step reproduction
Compile OpenVINO with -DTHREADING=SEQ. Run the following program on a machine with 2 or more NUMA nodes:
This prints the count of set affinity mask bits, which shouldn't change.
Relevant log output
On a machine with 2 NUMA nodes (72 hyperthreads in total):
----
count: 72
count: 18
count: 9
count: 4
test3: test3.cpp:24: int main(): Assertion `CPU_EQUAL(&set_initial, &set)' failed.----Expected output is always 72.
Issue submission checklist
I'm reporting an issue. It's not a question.
I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.
There is reproducer code and related data files such as images, videos, models, etc.
The text was updated successfully, but these errors were encountered:
Reproduced the issue, create ticket 143272 to fix. @notaz We will find solution to release the affinity set by OV when ov::Core is released. Please confirm if we have got your request correctly.
"OpenVINO should not change the affinity of threads that don't belong to it."
release the affinity set by OV when ov::Core is released
This is not a good solution either. Even after request.infer(); returns I need to be able to run my further code on any CPU. OpenVINO should never modify user's thread properties such as affinity at all. That should be limited to the threads OpenVINO creates (if it's needed at all).
OpenVINO Version
master branch
Operating System
Ubuntu 20.04 (LTS)
Device used for inference
CPU
Framework
None
Model used
Mask R-CNN
Issue description
With OpenVINO compiled with
-DTHREADING=SEQ
, when running inference on a machine with 2 (and probably more) NUMA nodes, the calling thread's CPU affinity mask gets changed. This doesn't happen on a machine with just 1 NUMA node. Settingov::hint::enable_cpu_pinning(false)
doesn't help. OpenVINO should not change the affinity of threads that don't belong to it.Step-by-step reproduction
Compile OpenVINO with -DTHREADING=SEQ. Run the following program on a machine with 2 or more NUMA nodes:
This prints the count of set affinity mask bits, which shouldn't change.
Relevant log output
Issue submission checklist
The text was updated successfully, but these errors were encountered: