typo in ops_amd invalidate_caches (#5643)

lead to silently not being called
This commit is contained in:
chenyu
2024-07-22 18:37:11 -04:00
committed by GitHub
parent ed2ee52b8b
commit fe17ea5c88

View File

@@ -470,7 +470,7 @@ class AMDDevice(HCQCompiled):
read_ptr=to_mv(queue.read_pointer_address, 8).cast("Q"), write_ptr=to_mv(queue.write_pointer_address, 8).cast("Q"),
doorbell=to_mv(self.doorbells + queue.doorbell_offset - self.doorbells_base, 8).cast("Q"))
def invalidate_cache(self):
def invalidate_caches(self):
AMDComputeQueue().memory_barrier().signal(self.timeline_signal, self.timeline_value).submit(self)
self.timeline_value += 1
self.synchronize()