move Allocator to buffer.py (#4502)

* move Allocator to buffer.py

* move those to realize

* memory file

* cleanup
This commit is contained in:
George Hotz 2024-05-09 19:45:56 -07:00 committed by GitHub
commit 89e119bc58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 186 additions and 164 deletions

View file

@ -5,7 +5,8 @@ from typing import Tuple, List, Optional, Any, Dict
import pickle, base64, itertools, time, struct
from tinygrad.dtype import DType, dtypes, ImageDType
from tinygrad.helpers import all_same, getenv, flatten
from tinygrad.device import Compiled, Allocator, Compiler, CompilerOptions
from tinygrad.device import Compiled, Compiler, CompilerOptions
from tinygrad.buffer import Allocator
from tinygrad.codegen.uops import UOpGraph, UOps
from tinygrad.ops import BinaryOps, TernaryOps, exec_alu