Files
compute-runtime/runtime/command_stream/thread_arbitration_policy.h
Cencelewska 230d808021 Add mechanism to dynamically assign thread arbitration policy by one kernel
-use clSetKernelExecInfo with param
 CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_INTEL
 to change default value of ThreadArbitrationPolicy

Change-Id: I15d0de0840ed14687c16ae04890b662bc157de76
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2019-12-11 09:30:33 +01:00

24 lines
410 B
C++

/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <stdint.h>
namespace NEO {
namespace ThreadArbitrationPolicy {
enum {
AgeBased = 0x0u,
RoundRobin = 0x1u,
RoundRobinAfterDependency = 0x2u,
NotPresent = 0xffffffffu
};
uint32_t getNewKernelArbitrationPolicy(uint32_t policy);
} // namespace ThreadArbitrationPolicy
} // namespace NEO