mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
40 lines
884 B
C++
40 lines
884 B
C++
/*
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "engine_node.h"
|
|
|
|
#include <atomic>
|
|
#include <string>
|
|
#include <utility>
|
|
|
|
namespace NEO {
|
|
struct HardwareInfo;
|
|
|
|
enum class EngineUsage : uint32_t {
|
|
Regular,
|
|
LowPriority,
|
|
Internal,
|
|
|
|
EngineUsageCount,
|
|
};
|
|
|
|
using EngineTypeUsage = std::pair<aub_stream::EngineType, EngineUsage>;
|
|
|
|
namespace EngineHelpers {
|
|
bool isCcs(aub_stream::EngineType engineType);
|
|
bool isBcs(aub_stream::EngineType engineType);
|
|
aub_stream::EngineType getBcsEngineType(const HardwareInfo &hwInfo, std::atomic<uint32_t> &selectorCopyEngine);
|
|
|
|
std::string engineTypeToString(aub_stream::EngineType engineType);
|
|
std::string engineTypeToStringAdditional(aub_stream::EngineType engineType);
|
|
std::string engineUsageToString(EngineUsage usage);
|
|
|
|
}; // namespace EngineHelpers
|
|
} // namespace NEO
|