mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
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:
committed by
Compute-Runtime-Automation
parent
6d1c673a70
commit
ff57bec1f0
@@ -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) {}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user