fix: ignore subDeviceId token instead of skipping builtins resolve

Previous implementation skipped resolving the subDeviceId token, which
caused in returning the LinkedPartially status if token was present.
It could result in ZE_RESULT_ERROR_INVALID_MODULE_UNLINKED when kernel
was created and crashing an app.

Related-To: NEO-6875, HSD-14015133115
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
Naklicki, Mateusz
2023-09-04 14:11:37 +00:00
committed by Compute-Runtime-Automation
parent 6d1c673a70
commit ff57bec1f0
14 changed files with 94 additions and 34 deletions

View File

@@ -33,7 +33,7 @@ class ReleaseHelper {
virtual bool isBFloat16ConversionSupported() const = 0;
virtual int getProductMaxPreferredSlmSize(int preferredEnumValue) const = 0;
virtual bool getMediaFrequencyTileIndex(uint32_t &tileIndex) const = 0;
virtual bool isResolvingBuiltinsNeeded() const = 0;
virtual bool isResolvingSubDeviceIDNeeded() const = 0;
protected:
ReleaseHelper(HardwareIpVersion hardwareIpVersion) : hardwareIpVersion(hardwareIpVersion) {}
@@ -56,7 +56,7 @@ class ReleaseHelperHw : public ReleaseHelper {
bool isBFloat16ConversionSupported() const override;
int getProductMaxPreferredSlmSize(int preferredEnumValue) const override;
bool getMediaFrequencyTileIndex(uint32_t &tileIndex) const override;
bool isResolvingBuiltinsNeeded() const override;
bool isResolvingSubDeviceIDNeeded() const override;
private:
ReleaseHelperHw(HardwareIpVersion hardwareIpVersion) : ReleaseHelper(hardwareIpVersion) {}

View File

@@ -54,7 +54,7 @@ bool ReleaseHelperHw<releaseType>::getMediaFrequencyTileIndex(uint32_t &tileInde
}
template <ReleaseType releaseType>
bool ReleaseHelperHw<releaseType>::isResolvingBuiltinsNeeded() const {
bool ReleaseHelperHw<releaseType>::isResolvingSubDeviceIDNeeded() const {
return true;
}
} // namespace NEO