Change size calculating for scratch on dg2

Also add proper init for SliceInfo on Linux

Resolves: NEO-6449
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2021-11-30 10:19:27 +00:00
committed by Compute-Runtime-Automation
parent f8de237963
commit fa16cbceb9
14 changed files with 108 additions and 5 deletions

View File

@@ -312,6 +312,10 @@ int main(int argc, char **argv) {
gtSystemInfo.IsDynamicallyPopulated = false;
// clang-format on
for (uint32_t slice = 0; slice < gtSystemInfo.MaxSlicesSupported; slice++) {
gtSystemInfo.SliceInfo[slice].Enabled = true;
}
// Platforms with uninitialized factory are not supported
if (L0::commandListFactory[productFamily] == nullptr) {
std::cout << "unsupported product family has been set: " << NEO::hardwarePrefix[::productFamily] << std::endl;