Files
compute-runtime/shared/source/helpers/topology.h
Brandon Yates 7b27c3668e fix: calculate subSlicesPerSlice correctly on XeKmd
Populate SliceInfo during topology creation.
Set L0 device props subslicesPerSlice to max
enabled subslice on any slice.

Related-to: NEO-16283

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2025-10-10 10:44:23 +02:00

43 lines
999 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 HardwareInfo;
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(HardwareInfo &hwInfo, const TopologyBitmap &topologyBitmap, const TopologyLimits &topologyLimits, TopologyMapping &topologyMapping);
TopologyInfo getTopologyInfoMultiTile(HardwareInfo &hwInfo, std::span<const TopologyBitmap> topologyBitmap, const TopologyLimits &topologyLimits, TopologyMap &topologyMap);
} // namespace NEO