mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 11:03:02 +08:00
41 lines
934 B
C++
41 lines
934 B
C++
/*
|
|
* Copyright (C) 2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/helpers/topology_map.h"
|
|
|
|
#include <cstdint>
|
|
#include <span>
|
|
|
|
namespace NEO {
|
|
|
|
struct TopologyBitmap {
|
|
std::span<const uint8_t> dssGeometry;
|
|
std::span<const uint8_t> dssCompute;
|
|
std::span<const uint8_t> l3Banks;
|
|
std::span<const uint8_t> eu; // shared by all subslices
|
|
};
|
|
|
|
struct TopologyInfo {
|
|
int sliceCount;
|
|
int subSliceCount;
|
|
int euCount;
|
|
int l3BankCount;
|
|
};
|
|
|
|
struct TopologyLimits {
|
|
int maxSlices;
|
|
int maxSubSlicesPerSlice;
|
|
int maxEusPerSubSlice;
|
|
};
|
|
|
|
TopologyInfo getTopologyInfo(const TopologyBitmap &topologyBitmap, const TopologyLimits &topologyLimits, TopologyMapping &topologyMapping);
|
|
TopologyInfo getTopologyInfoMultiTile(const std::span<TopologyBitmap> &topologyBitmap, const TopologyLimits &topologyLimits, TopologyMap &topologyMap);
|
|
|
|
} // namespace NEO
|