Update aubstream interface: use product family from aubstream

don't build aub tests when aubstream is not available
use only mock aub manager in ULTs

Related-To: NEO-4446
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-11-16 11:03:40 +00:00
committed by Compute-Runtime-Automation
parent 4995bddb89
commit 0b3582a93b
54 changed files with 533 additions and 244 deletions

View File

@@ -5,9 +5,17 @@
*
*/
#include "product_family.h"
namespace NEO {
template <>
AOT::PRODUCT_CONFIG HwInfoConfigHw<gfxProduct>::getProductConfigFromHwInfo(const HardwareInfo &hwInfo) const {
return AOT::APL;
}
template <>
std::optional<aub_stream::ProductFamily> HwInfoConfigHw<gfxProduct>::getAubStreamProductFamily() const {
return aub_stream::ProductFamily::Bxt;
};
} // namespace NEO

View File

@@ -8,6 +8,7 @@
#include "shared/source/gen9/cfl/device_ids_configs_cfl.h"
#include "platforms.h"
#include "product_family.h"
#include <algorithm>
@@ -28,4 +29,10 @@ AOT::PRODUCT_CONFIG HwInfoConfigHw<gfxProduct>::getProductConfigFromHwInfo(const
}
return AOT::UNKNOWN_ISA;
}
} // namespace NEO
template <>
std::optional<aub_stream::ProductFamily> HwInfoConfigHw<gfxProduct>::getAubStreamProductFamily() const {
return aub_stream::ProductFamily::Cfl;
};
} // namespace NEO

View File

@@ -5,9 +5,17 @@
*
*/
#include "product_family.h"
namespace NEO {
template <>
AOT::PRODUCT_CONFIG HwInfoConfigHw<gfxProduct>::getProductConfigFromHwInfo(const HardwareInfo &hwInfo) const {
return AOT::GLK;
}
template <>
std::optional<aub_stream::ProductFamily> HwInfoConfigHw<gfxProduct>::getAubStreamProductFamily() const {
return aub_stream::ProductFamily::Glk;
};
} // namespace NEO

View File

@@ -8,6 +8,7 @@
#include "shared/source/gen9/kbl/device_ids_configs_kbl.h"
#include "platforms.h"
#include "product_family.h"
#include <algorithm>
@@ -25,4 +26,10 @@ AOT::PRODUCT_CONFIG HwInfoConfigHw<gfxProduct>::getProductConfigFromHwInfo(const
}
return AOT::UNKNOWN_ISA;
}
} // namespace NEO
template <>
std::optional<aub_stream::ProductFamily> HwInfoConfigHw<gfxProduct>::getAubStreamProductFamily() const {
return aub_stream::ProductFamily::Kbl;
};
} // namespace NEO

View File

@@ -5,9 +5,17 @@
*
*/
#include "product_family.h"
namespace NEO {
template <>
AOT::PRODUCT_CONFIG HwInfoConfigHw<gfxProduct>::getProductConfigFromHwInfo(const HardwareInfo &hwInfo) const {
return AOT::SKL;
}
template <>
std::optional<aub_stream::ProductFamily> HwInfoConfigHw<gfxProduct>::getAubStreamProductFamily() const {
return aub_stream::ProductFamily::Skl;
};
} // namespace NEO