Files
tinygrad/accel/rawcpu/buffer.pyxbld
George Hotz 783c120a8c rawcpu (#365)
* rawcpu

* add should work when we respect shapetracker

* now that's true

* still have to handle shapetracker

* copyin

* Fix mypy
2022-08-17 11:33:20 +02:00

11 lines
330 B
Plaintext

import os
import numpy as np
def make_ext(modname, pyxfilename):
from distutils.extension import Extension
include_dir = os.path.dirname(pyxfilename)
return Extension(name=modname,
include_dirs=[include_dir, np.get_include()],
sources=[pyxfilename],
language='c++')