Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
ctypes, struct, platform, pathlib, os, binascii
2
from
hexdump
import
hexdump
3
from
tinygrad.helpers
import
to_mv, DEBUG, getenv
4
from
tinygrad.runtime.autogen
import
libc, cuda
Callers
nothing calls this directly
Calls
10
getenv
Function · 0.90
model
Function · 0.85
realize
Method · 0.80
zeros
Method · 0.80
rand
Method · 0.80
exp2
Method · 0.80
install_hook
Function · 0.70
contiguous
Method · 0.45
compile
Method · 0.45
numpy
Method · 0.45
Tested by
no test coverage detected