Files
tinygrad/test/external
uuuvn 7bc4864bc4 Make dev a property of Allocator (#10286)
* Make `dev` a property of `Allocator`

(this is a prereq refactor for #10285)

At least `BufferXfer.copy` accesses it assuming it's always present,
currently most devices just add this property on their own repeating
the same code over and over again.

This is also a bit footguny, see `RemoteAllocator` that named this
property `device` instead of `dev`, i could obviously just change that
in one place but doing it globally seems like a better solution (and it
reduces code duplication too).

`MallocAllocator` is a bit special, but passing `None` works just fine.

* typing

* ignore type instead of cast
2025-05-13 17:01:01 -07:00
..
2025-03-21 15:52:54 -04:00
2024-09-25 17:45:13 +08:00
2025-04-25 23:19:21 +03:00
2025-02-20 18:03:09 -05:00
2023-09-22 07:20:27 +08:00
2024-03-29 19:35:50 -07:00
2024-12-31 23:06:17 +03:00
2025-04-25 23:19:21 +03:00
2024-11-21 10:33:08 +08:00
2025-02-18 15:26:58 +08:00
2023-09-28 18:02:31 -07:00