mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 22:48:25 -05:00
am: extend va space (#13745)
This commit is contained in:
@@ -134,7 +134,7 @@ class AMPageTableEntry:
|
|||||||
def supports_huge_page(self, paddr:int): return self.lv >= am.AMDGPU_VM_PDB2
|
def supports_huge_page(self, paddr:int): return self.lv >= am.AMDGPU_VM_PDB2
|
||||||
|
|
||||||
class AMMemoryManager(MemoryManager):
|
class AMMemoryManager(MemoryManager):
|
||||||
va_allocator = TLSFAllocator(512 * (1 << 30), base=0x200000000000) # global for all devices.
|
va_allocator = TLSFAllocator((1 << 44), base=0x200000000000) # global for all devices.
|
||||||
|
|
||||||
def on_range_mapped(self):
|
def on_range_mapped(self):
|
||||||
# Invalidate TLB after mappings.
|
# Invalidate TLB after mappings.
|
||||||
|
|||||||
Reference in New Issue
Block a user