-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reserving CPU resource in CPU inference #27321
base: master
Are you sure you want to change the base?
Reserving CPU resource in CPU inference #27321
Conversation
…cpu_pinning=false in GPU plugin
} | ||
} | ||
if (get_property(ov::hint::enable_cpu_reservation) && !get_property(ov::hint::enable_cpu_pinning)) { | ||
set_property(ov::hint::enable_cpu_pinning(true)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need this logic here? User can set enable_cpu_reservation to true and enable_cpu_pinning to false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if enable_cpu_reservation is true, enable_cpu_pinning must be true. Because reserving cpus means pinning tasks to fixed cpus firstly, then reserving these cpus.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User still can use enable_cpu_reservation true with enable_cpu_pinning false together. Then the next model only can use remained CPU cores for latency/throughput hit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, done.
…ilable and PluginAllSupportedPropertiesAreAvailable
Details:
ov::hint::enable_cpu_reservation
to reserve CPU resource in CPU inferenceov::hint::enable_cpu_reservation
defaults to false, user can explicitly set it to true to enable CPU reservation.Tickets: