mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
OCL: Set target device product family
In OCL product family of target device is not set which leads to a fail on validating target device in ZEBin path. This change adds function that sets all necessary fields based on provided hardware info. Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b61d213f4f
commit
d49c5d6185
@@ -1625,11 +1625,7 @@ TEST_F(ProgramWithDebugSymbolsTests, GivenProgramCreatedWithDashGOptionWhenGetti
|
||||
ArrayRef<const uint8_t> archive(reinterpret_cast<const uint8_t *>(testBinary.get()), size);
|
||||
auto productAbbreviation = hardwarePrefix[pDevice->getHardwareInfo().platform.eProductFamily];
|
||||
|
||||
TargetDevice targetDevice = {};
|
||||
|
||||
targetDevice.coreFamily = pDevice->getHardwareInfo().platform.eRenderCoreFamily;
|
||||
targetDevice.stepping = pDevice->getHardwareInfo().platform.usRevId;
|
||||
targetDevice.maxPointerSizeInBytes = sizeof(uintptr_t);
|
||||
TargetDevice targetDevice = NEO::targetDeviceFromHwInfo(pDevice->getHardwareInfo());
|
||||
|
||||
std::string decodeErrors;
|
||||
std::string decodeWarnings;
|
||||
|
||||
Reference in New Issue
Block a user