mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
ULT: setup productFamily and renderCoreFamily before using them
Change-Id: I005afe541f1bf01b6e28adf48d0e10eda121b03b Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
8f30d87a1e
commit
e5671d8e22
@@ -185,6 +185,9 @@ int main(int argc, char **argv) {
|
|||||||
useDefaultListener = true;
|
useDefaultListener = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
productFamily = hwInfoForTests.platform.eProductFamily;
|
||||||
|
renderCoreFamily = hwInfoForTests.platform.eRenderCoreFamily;
|
||||||
|
|
||||||
// Platforms with uninitialized factory are not supported
|
// Platforms with uninitialized factory are not supported
|
||||||
if (L0::commandListFactory[productFamily] == nullptr) {
|
if (L0::commandListFactory[productFamily] == nullptr) {
|
||||||
std::cout << "unsupported product family has been set: " << NEO::hardwarePrefix[::productFamily] << std::endl;
|
std::cout << "unsupported product family has been set: " << NEO::hardwarePrefix[::productFamily] << std::endl;
|
||||||
@@ -227,9 +230,6 @@ int main(int argc, char **argv) {
|
|||||||
// set Gt and FeatureTable to initial state
|
// set Gt and FeatureTable to initial state
|
||||||
NEO::hardwareInfoSetup[productFamily](&hwInfoForTests, false, hwInfoConfig);
|
NEO::hardwareInfoSetup[productFamily](&hwInfoForTests, false, hwInfoConfig);
|
||||||
|
|
||||||
productFamily = hwInfoForTests.platform.eProductFamily;
|
|
||||||
renderCoreFamily = hwInfoForTests.platform.eRenderCoreFamily;
|
|
||||||
|
|
||||||
NEO::defaultHwInfo = std::make_unique<NEO::HardwareInfo>();
|
NEO::defaultHwInfo = std::make_unique<NEO::HardwareInfo>();
|
||||||
*NEO::defaultHwInfo = hwInfoForTests;
|
*NEO::defaultHwInfo = hwInfoForTests;
|
||||||
|
|
||||||
|
|||||||
@@ -160,6 +160,9 @@ int main(int argc, char **argv) {
|
|||||||
useDefaultListener = true;
|
useDefaultListener = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
productFamily = hwInfoForTests.platform.eProductFamily;
|
||||||
|
renderCoreFamily = hwInfoForTests.platform.eRenderCoreFamily;
|
||||||
|
|
||||||
// Platforms with uninitialized factory are not supported
|
// Platforms with uninitialized factory are not supported
|
||||||
if (L0::commandListFactory[productFamily] == nullptr) {
|
if (L0::commandListFactory[productFamily] == nullptr) {
|
||||||
std::cout << "unsupported product family has been set: " << NEO::hardwarePrefix[::productFamily] << std::endl;
|
std::cout << "unsupported product family has been set: " << NEO::hardwarePrefix[::productFamily] << std::endl;
|
||||||
@@ -192,9 +195,6 @@ int main(int argc, char **argv) {
|
|||||||
// set Gt and FeatureTable to initial state
|
// set Gt and FeatureTable to initial state
|
||||||
NEO::hardwareInfoSetup[productFamily](&hwInfoForTests, false, hwInfoConfig);
|
NEO::hardwareInfoSetup[productFamily](&hwInfoForTests, false, hwInfoConfig);
|
||||||
|
|
||||||
productFamily = hwInfoForTests.platform.eProductFamily;
|
|
||||||
renderCoreFamily = hwInfoForTests.platform.eRenderCoreFamily;
|
|
||||||
|
|
||||||
NEO::defaultHwInfo = std::make_unique<NEO::HardwareInfo>();
|
NEO::defaultHwInfo = std::make_unique<NEO::HardwareInfo>();
|
||||||
*NEO::defaultHwInfo = hwInfoForTests;
|
*NEO::defaultHwInfo = hwInfoForTests;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user