mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-24 14:28:09 -05:00
* rawcpu * add should work when we respect shapetracker * now that's true * still have to handle shapetracker * copyin * Fix mypy
13 lines
269 B
Cython
13 lines
269 B
Cython
# distutils: language = c++
|
|
# distutils: sources = cbuffer.h
|
|
|
|
cdef extern from "cbuffer.h":
|
|
cdef cppclass CBuffer:
|
|
CBuffer(int size)
|
|
void copyin(void *dat)
|
|
void add(CBuffer *a, CBuffer *b)
|
|
void mul(CBuffer *a, CBuffer *b)
|
|
float *buf
|
|
int size
|
|
|