MCPcopy
hub / github.com/tinygrad/tinygrad / hook_cuda.py

File hook_cuda.py

extra/hook_cuda.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import ctypes, struct, platform, pathlib, os, binascii
2from hexdump import hexdump
3from tinygrad.helpers import to_mv, DEBUG, getenv
4from tinygrad.runtime.autogen import libc, cuda

Callers

nothing calls this directly

Calls 10

getenvFunction · 0.90
modelFunction · 0.85
realizeMethod · 0.80
zerosMethod · 0.80
randMethod · 0.80
exp2Method · 0.80
install_hookFunction · 0.70
contiguousMethod · 0.45
compileMethod · 0.45
numpyMethod · 0.45

Tested by

no test coverage detected