mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 12:32:06 +08:00
33d5cfc393
date: 2025-12-18T23:23:16 master commit: 3cdee7b54718ee14bd85befd6c5bad3d699c5479
10 lines
221 B
Python
10 lines
221 B
Python
from tinygrad.helpers import Profiling
|
|
from tinygrad import Device
|
|
|
|
if __name__ == "__main__":
|
|
am = Device["AMD"]
|
|
|
|
# kfd is 0.55ms!
|
|
with Profiling("allocation 127.7mb"):
|
|
am.allocator.alloc(int(127.7*1024*1024))
|