Skip to content

Commit

Permalink
[GPU] Use only big cores for hybrid CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyamin-Roman committed Nov 23, 2023
1 parent 613e4f5 commit 590c731
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/intel_gpu/src/graph/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@ static ov::threading::IStreamsExecutor::Config make_task_executor_config(const E
case ov::hint::Priority::HIGH: task_executor_config._threadPreferredCoreType = ov::threading::IStreamsExecutor::Config::BIG; break;
default: OPENVINO_ASSERT(false, "[GPU] Can't create task executor: invalid host task priority value: ", priority);
}
bool enable_cpu_pinning = config.get_property(ov::hint::enable_cpu_pinning);

task_executor_config.update_executor_config(task_executor_config._streams,
1,
task_executor_config._threadPreferredCoreType,
false);
enable_cpu_pinning);

return task_executor_config;
}
Expand Down
6 changes: 6 additions & 0 deletions src/plugins/intel_gpu/src/runtime/execution_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "intel_gpu/runtime/execution_config.hpp"
#include "intel_gpu/runtime/debug_configuration.hpp"
#include "openvino/runtime/internal_properties.hpp"
#include "ie_system_conf.h"

#include <thread>

Expand All @@ -13,6 +14,11 @@ namespace intel_gpu {

ExecutionConfig::ExecutionConfig() {
set_default();

if (get_available_cores_types().size() > 1 /*Hybrid CPU*/) {
set_property(ov::hint::enable_cpu_pinning(true));
set_property(ov::intel_gpu::hint::host_task_priority(ov::hint::Priority::HIGH));
}
}

class InferencePrecisionValidator : public BaseValidator {
Expand Down

0 comments on commit 590c731

Please sign in to comment.