mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Affinity mask helper
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
171a614f18
commit
9458638718
@@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/built_ins/sip_kernel_type.h"
|
||||
#include "shared/source/helpers/affinity_mask.h"
|
||||
#include "shared/source/helpers/options.h"
|
||||
|
||||
#include <cstdint>
|
||||
@@ -33,8 +34,6 @@ class SipKernel;
|
||||
class SWTagsManager;
|
||||
struct HardwareInfo;
|
||||
|
||||
constexpr uint32_t allSubDevicesActive = std::numeric_limits<uint32_t>::max();
|
||||
|
||||
struct RootDeviceEnvironment {
|
||||
protected:
|
||||
std::unique_ptr<HardwareInfo> hwInfo;
|
||||
@@ -74,7 +73,7 @@ struct RootDeviceEnvironment {
|
||||
std::unique_ptr<SWTagsManager> tagsManager;
|
||||
ExecutionEnvironment &executionEnvironment;
|
||||
|
||||
uint32_t deviceAffinityMask = allSubDevicesActive;
|
||||
AffinityMaskHelper deviceAffinityMask{true};
|
||||
|
||||
private:
|
||||
std::mutex mtx;
|
||||
|
||||
Reference in New Issue
Block a user