George Hotz and GitHub
6b361e4de7
move shape into arg for param/buffer ( #17783 )
...
* move shape into arg for param/buffer
* no param_from_shape
* drop gratuitous syntax changes
* image is a in-graph view, folded into the param arg at render; drop dead multi param sharding
* view_as helper, simpler resolve_function, spec update
* spec: param/buffer are flat storage, no shape input
* image dims live in the param arg from transform_to_image; tighten kernel graph spec
* kernel graph spec: only RESHAPE/SHRINK over storage values, not all movement
* kernel graph: call args are storage, not views (pm_no_view_args); assert in spec
* strip views at the kernel graph level (pm_no_views), move into rangeify
* touchups
2026-08-27 18:13:24 -07:00
George Hotz and GitHub
f267a49639
UOp.param accepts single sint as shape (int,) ( #17784 )
...
* UOp.param accepts single sint as shape (int,)
Change UOp.param signature from shape:tuple[sint, ...]|None to shape:tuple[sint, ...]|sint|None.
A single sint means 1D shape (sint,). Update all callers from (n,) to n syntax.
No param_from_shape — multi-dim shapes stay as tuples.
* use single int syntax in hcq2 copy_with_kernel
2026-08-27 14:07:33 -07:00
George Hotz and GitHub
dc04c7820e
lil fixes from new_rangeify ( #17741 )
...
* lil fixes from new_rangeify
* gpt sol review
2026-08-25 17:15:28 -07:00
George Hotz and GitHub
a5678317c2
split rangeify to prepare.py ( #17722 )
2026-08-24 19:12:13 -07:00
chenyu and GitHub
8b164aefea
test update from weak const ( #17689 )
2026-08-23 17:30:16 -04:00
chenyu and GitHub
fc214da417
test updates for weak const change ( #17606 )
2026-08-19 15:56:01 -04:00
chenyu and GitHub
bd6e70ac15
delete stale tests ( #17596 )
2026-08-19 11:18:05 -04:00
chenyu and GitHub
b3e2f17b24
update NULL tests that depends on strong dtype CONST ( #17594 )
2026-08-19 10:26:38 -04:00
George Hotz and GitHub
b1859805b1
remove Ops.BIND ( #17511 )
...
* remove Ops.BIND
* param arg
* simplify that
* simplify
* cleaner
* props, not functions
* param and buffer can share
2026-08-13 23:52:16 -07:00
chenyu and GitHub
28e6ef6937
fix postopt symbolic [pr] ( #17433 )
...
REDUCE with src simplied to const would become unparented
2026-08-06 00:12:30 -04:00
chenyu and GitHub
59df317b12
use UOp.const to create new consts [PR] ( #17368 )
...
replace arg won't work with ConstArg
2026-08-02 13:31:55 -04:00
chenyu and GitHub
b502fc1367
more const arg -> val ( #17350 )
2026-08-01 02:18:10 -04:00
chenyu and GitHub
ad24750487
const(value, dtype) -> const(value).cast(dtype) in tests ( #17335 )
2026-07-31 13:24:31 -04:00
chenyu and GitHub
7f4dbb8090
remove shape= from UOp.const [PR] ( #17331 )
...
inlined to const_like
2026-07-31 11:18:59 -04:00
chenyu and GitHub
8e2f175542
const(dtype, b) -> const(b, dtype) [PR] ( #17328 )
...
prep for dtype removal
2026-07-31 09:46:37 -04:00
chenyu and GitHub
d52ef3077c
fix do_devectorize dtype ( #17295 )
...
each one derives its dtype from src, not shared
2026-07-29 23:04:25 -04:00
George Hotz and GitHub
52c9e5a99e
rename LOOP -> WEAK and STRONGLOOP -> LOOP ( #17283 )
2026-07-29 10:38:36 -07:00
chenyu and GitHub
f64f96ec59
broadcast_axes [PR] ( #17112 )
...
prerequisite to simplify broadcasting logic and make it implicit
2026-07-21 11:53:12 -04:00
chenyu and GitHub
13ca9bd8a6
remove dtypes.index again ( #17104 )
...
also reverted some dtype change, the split made things needlessly complicated
2026-07-20 20:30:04 -04:00
George Hotz and GitHub
61e104bdfb
use UOp.wmma everywhere ( #17045 )
...
* use UOp.wmma everywhere
* fix
2026-07-16 10:40:48 -07:00
George Hotz and GitHub
03ecad9486
full removal of dtype.vec ( #16996 )
...
* full removal of dtype.vec
* fix typo
2026-07-12 09:25:50 -07:00
chenyu and GitHub
78223d690a
update SPECIAL spec ( #16952 )
...
also updated tests with bad UOp
2026-07-09 19:05:34 -04:00
George Hotz and GitHub
95681f17ee
remove extra dtypes from tests ( #16954 )
...
* remove extra dtypes from tests
* a few more
2026-07-09 14:59:56 -07:00
chenyu and GitHub
ba2c68b1ed
start dtypes.index [PR] ( #16949 )
2026-07-09 15:12:23 -04:00
George Hotz and GitHub
40d112d4d6
remove ptr=True from index ( #16898 )
2026-07-06 18:34:18 -07:00
George Hotz and GitHub
6b8b2f5aeb
remove PtrDtype from tests ( #16896 )
...
* remove PtrDtype from tests
* fixes
* not needed
* no -1
2026-07-06 18:22:22 -07:00
George Hotz and GitHub
9512dc30f4
remove vec from const ( #16889 )
...
* remove vec from const
* reject in spec
* remove all vector dtypes
* not needed
* remove that
* clean up invalid
2026-07-06 12:23:07 -07:00
George Hotz and GitHub
a145fdce4b
remove the .gep method ( #16867 )
2026-07-04 14:07:09 -07:00
George Hotz and GitHub
3fd6f3d28c
no more GEP ( #16866 )
2026-07-04 13:42:28 -07:00
George Hotz and GitHub
d76bcbaa02
deletions after new codegen ( #16864 )
...
* deletions after new codegen
* delete the expander
2026-07-04 13:12:11 -07:00
geohot
0240998b06
hotfix: that test_ellipsis_with_int test was important
2026-07-02 19:19:38 -07:00
George Hotz and GitHub
e6fbede157
changes from new codegen ( #16836 )
2026-07-02 17:01:37 -07:00
geohot
af0e339114
test fix
2026-06-29 18:37:49 -07:00
George Hotz and GitHub
59aec35a7d
more devec cleanups (glm) ( #16772 )
2026-06-26 19:27:04 -07:00
George Hotz and GitHub
a6ed4237e5
remove Ops.VCAT and Ops.PTRCAT (glm) ( #16771 )
...
* remove Ops.VCAT and Ops.PTRCAT (glm)
* fix stack, and remove useless casts
2026-06-26 18:35:38 -07:00
George Hotz and GitHub
925c49ce99
use placeholder in tests ( #16672 )
2026-06-18 20:51:44 -07:00
George Hotz and GitHub
4a4b6956df
remove DEFINE_VAR from codebase (gpt) ( #16666 )
...
* remove DEFINE_VAR from codebase
* junk
* remove junk
2026-06-18 15:33:50 -07:00
George Hotz and GitHub
5989d0b150
remove DEFINE_VAR try 2 ( #16651 )
...
* remove DEFINE_VAR try 2
* param
* null index
* fix fuzzing
* fixes
* no gather neg params
* param is just Irreducible
* fixes
* skip stack
* need to filter slots there
2026-06-18 12:34:25 -07:00
George Hotz and GitHub
d631716858
remove const without STACK ( #16639 )
...
* remove const without STACK
* fix GEP rewrite
* fix null tests
* fix openpilot regression
* it's 10 in CI
2026-06-16 21:25:42 -07:00
George Hotz and GitHub
b8aec4cce7
port x86 to new_style (fable slop) and now everything is new style ( #16581 )
...
* port x86 to new_style (fable slop)
* don't change ops
* port NIR to new_style (fable)
* lil cleanup
* fix tests, and remove new_style
2026-06-11 21:09:34 -07:00
chenyu and GitHub
6b7d2b91df
update test_uop_graph ( #16470 )
...
use UOp methods instead of constructing UOp directly, some of it violated spec
2026-06-02 08:53:54 -04:00
George Hotz and GitHub
20242fdf1d
update test + spec from shrink_in_render ( #16467 )
...
* update test + spec from shrink_in_render
* cast
2026-06-01 19:24:43 -07:00
George Hotz and GitHub
124d2f8227
anon addrspace from new renderer ( #16461 )
...
* anon addrspace from new renderer
* use max_numel in python renderer
* add sizes to ptrs in tests
* more
* correct fix
2026-06-01 14:42:02 -07:00
George Hotz and GitHub
1e7f1dcf49
add ParamArgs [pr] ( #16421 )
...
* add ParamArgs
* fix export
* cleanups
* fixes
* simpler
2026-05-28 19:17:17 -07:00
George Hotz and GitHub
6815f28849
dtype.vec shapes ( #16287 )
...
* dtype.vec shapes
* something
* Closer
* more passes
* shape is in spec
* fix reduce
* image dtype shape correct
* lil
* use reshape on image
* need BUFFER there
* remove that test
* fix ptx + x86
* fix nir
* x86 fix maybe
* x86 fixups
* x86 fix
* don't check that for NOOP
2026-05-21 11:56:49 -07:00
George Hotz and GitHub
55515747b7
Remove Ops.VCONST ( #16267 )
...
* start removing vconst
* remove a lot of vconst
* const folding + strict ordering
* update tests
* spec from minigen
* move that
2026-05-19 16:35:24 -07:00
George Hotz and GitHub
8294d105a7
Update the spec in spec.py to match the current state ( #16132 )
...
* start work on specv2
* more spec
* more spec
* fix amd emulator
* more spec
* more
* fix test_uop_graph
* move those
* spec=2
* skip those questionable tests
* ptx fix
* more spec=2
* store
* allow custom function in tensor
* spec 2
* fix beam search for tensor cores
* delete the old specs
* fix import
2026-05-11 20:07:47 -07:00
George Hotz and GitHub
daed602569
rename BUFFERIZE to STAGE ( #16125 )
2026-05-10 09:26:46 -07:00
George Hotz and GitHub
b796bbae87
fix valid in indexing tests ( #16087 )
2026-05-07 14:11:28 -07:00
George Hotz and GitHub
5f441ecffc
unify reduce + reduce_axis ( #15973 )
...
* unify reduce + reduce_axis
* fix all tests
* lil cleanups
2026-04-29 10:29:56 -07:00