mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Add PrintOsContextInitializations debug flag
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
fa944d296c
commit
4ffe456d85
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2020 Intel Corporation
|
||||
* Copyright (C) 2019-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -7,18 +7,35 @@
|
||||
|
||||
#include "shared/source/helpers/engine_node_helper.h"
|
||||
|
||||
namespace NEO {
|
||||
namespace EngineHelpers {
|
||||
bool isCcs(aub_stream::EngineType engineType) {
|
||||
return engineType == aub_stream::ENGINE_CCS;
|
||||
namespace NEO::EngineHelpers {
|
||||
|
||||
std::string engineUsageToString(EngineUsage usage) {
|
||||
switch (usage) {
|
||||
case EngineUsage::Regular:
|
||||
return "Regular";
|
||||
case EngineUsage::LowPriority:
|
||||
return "LowPriority";
|
||||
case EngineUsage::Internal:
|
||||
return "Internal";
|
||||
default:
|
||||
return "Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
bool isBcs(aub_stream::EngineType engineType) {
|
||||
return engineType == aub_stream::ENGINE_BCS;
|
||||
std::string engineTypeToString(aub_stream::EngineType engineType) {
|
||||
switch (engineType) {
|
||||
case aub_stream::EngineType::ENGINE_RCS:
|
||||
return "RCS";
|
||||
case aub_stream::EngineType::ENGINE_BCS:
|
||||
return "BCS";
|
||||
case aub_stream::EngineType::ENGINE_VCS:
|
||||
return "VCS";
|
||||
case aub_stream::EngineType::ENGINE_VECS:
|
||||
return "VECS";
|
||||
case aub_stream::EngineType::ENGINE_CCS:
|
||||
return "CCS";
|
||||
default:
|
||||
return engineTypeToStringAdditional(engineType);
|
||||
}
|
||||
}
|
||||
|
||||
aub_stream::EngineType getBcsEngineType(const HardwareInfo &hwInfo, std::atomic<uint32_t> &selectorCopyEngine) {
|
||||
return aub_stream::EngineType::ENGINE_BCS;
|
||||
}
|
||||
} // namespace EngineHelpers
|
||||
} // namespace NEO
|
||||
} // namespace NEO::EngineHelpers
|
||||
|
||||
Reference in New Issue
Block a user