Files
tinygrad/test
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-02-20 18:03:09 -05:00
2025-05-12 11:03:01 -04:00
2024-12-06 15:48:16 +01:00
2020-12-15 23:44:08 -08:00
2024-11-11 20:18:04 +08:00
2025-03-21 23:13:27 +08:00
2025-02-17 14:47:54 +01:00
2024-07-12 20:43:36 -07:00
2025-02-20 18:03:09 -05:00
2025-02-18 15:26:58 +08:00
2025-04-22 19:12:49 -04:00
2025-02-20 18:03:09 -05:00
2025-05-07 11:41:41 -07:00
2025-05-07 11:41:41 -07:00
2025-02-20 18:03:09 -05:00
2023-12-07 17:07:05 -08:00
2025-05-13 11:53:59 -04:00
2025-03-10 16:05:30 -04:00
2025-02-10 12:45:11 +01:00
2025-02-20 18:03:09 -05:00