mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-07 03:00:26 -04:00
hcq cache invalidation for beam (#5630)
* nv full cache invalidation * the same command on amd * linter * fix amd * nv no hardcoded consts * beam default
This commit is contained in:
@@ -492,3 +492,8 @@ class AMDDevice(HCQCompiled):
|
||||
self.kernargs_ptr = self.kernargs.va_addr
|
||||
if self.timeline_value > (1 << 31): self._wrap_timeline_signal()
|
||||
if PROFILE: self._prof_process_events()
|
||||
|
||||
def invalidate_cache(self):
|
||||
AMDComputeQueue().memory_barrier().signal(self.timeline_signal, self.timeline_value).submit(self)
|
||||
self.timeline_value += 1
|
||||
self.synchronize()
|
||||
|
||||
Reference in New Issue
Block a user