mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Use global timestamps instead of local
Change-Id: Ie39b242915a55aef60fcf7164199647299c91a21
This commit is contained in:
committed by
sys_ocldev
parent
0bbd2b2ac4
commit
57269b97a3
@@ -228,6 +228,11 @@ void MemorySynchronizationCommands<Family>::setCacheFlushExtraProperties(Family:
|
||||
pipeControl.setConstantCacheInvalidationEnable(false);
|
||||
}
|
||||
|
||||
template <>
|
||||
bool HwHelperHw<Family>::useOnlyGlobalTimestamps() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template class HwHelperHw<Family>;
|
||||
template class FlatBatchBufferHelperHw<Family>;
|
||||
template struct MemorySynchronizationCommands<Family>;
|
||||
|
||||
@@ -124,6 +124,7 @@ class HwHelper {
|
||||
virtual uint32_t getDefaultThreadArbitrationPolicy() const = 0;
|
||||
virtual void adjustPlatformCoreFamilyForIgc(HardwareInfo &hwInfo) = 0;
|
||||
virtual bool heapInLocalMem(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual bool useOnlyGlobalTimestamps() const = 0;
|
||||
|
||||
static uint32_t getSubDevicesCount(const HardwareInfo *pHwInfo);
|
||||
static uint32_t getEnginesCount(const HardwareInfo &hwInfo);
|
||||
@@ -316,6 +317,8 @@ class HwHelperHw : public HwHelper {
|
||||
|
||||
void adjustPlatformCoreFamilyForIgc(HardwareInfo &hwInfo) override;
|
||||
|
||||
bool useOnlyGlobalTimestamps() const override;
|
||||
|
||||
protected:
|
||||
LocalMemoryAccessMode getDefaultLocalMemoryAccessMode(const HardwareInfo &hwInfo) const override;
|
||||
|
||||
|
||||
@@ -480,4 +480,8 @@ uint32_t HwHelperHw<GfxFamily>::getDefaultThreadArbitrationPolicy() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
bool HwHelperHw<GfxFamily>::useOnlyGlobalTimestamps() const {
|
||||
return false;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user