Skip to content
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

Don't set affinity if didn't specify -ss #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Source/Lib/Codec/EbEncHandle.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,10 @@ void eb_set_thread_management_parameters( EbSvtVp9EncConfiguration *config_ptr){
if (num_groups == 1) {
uint32_t lps = config_ptr->logical_processors == 0 ? num_logical_processors :
config_ptr->logical_processors < num_logical_processors ? config_ptr->logical_processors : num_logical_processors;
for (uint32_t i = 0; i < lps; i++)
CPU_SET(lp_group[0].group[i], &group_affinity);
if (config_ptr->target_socket != -1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as for HEVC. The change is not needed.

for (uint32_t i = 0; i < lps; i++)
CPU_SET(lp_group[0].group[i], &group_affinity);
}
}
else if (num_groups > 1) {
uint32_t num_lp_per_group = num_logical_processors / num_groups;
Expand Down