Files
compute-runtime/runtime/helpers/engine_node.h
Milczarek, Slawomir cd8f08b94b AUB CSR functions to operate on engine instance
Change-Id: I928cf5f7c25980fdfb2da825cbe062b5497c328a
2018-10-24 16:33:11 -07:00

39 lines
709 B
C++

/*
* Copyright (C) 2017-2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <cstdint>
namespace OCLRT {
enum EngineType : uint32_t {
ENGINE_RCS = 0,
ENGINE_BCS,
ENGINE_VCS,
ENGINE_VECS,
NUM_ENGINES
};
struct EngineInstanceT {
constexpr EngineInstanceT(EngineType type) : type(type), id(0) {}
constexpr EngineInstanceT(EngineType type, int id) : type(type), id(id) {}
EngineType type;
int id;
};
static constexpr EngineInstanceT allEngineInstances[] = {
{ENGINE_RCS},
{ENGINE_BCS},
{ENGINE_VCS},
{ENGINE_VECS},
};
static constexpr EngineInstanceT gpgpuEngineInstances[] = {
{ENGINE_RCS},
};
} // namespace OCLRT