---------------------------------------------------------------------------------------------------- runtime.hpp
| 315 | |
| 316 | // ---------------------------------------------------------------------------------------------------- runtime.hpp |
| 317 | void* host_view(const void* p) { |
| 318 | size_t off = 0; |
| 319 | const Alloc* a = find(p, &off); |
| 320 | return a ? a->cpu + off : nullptr; |
| 321 | } |
| 322 | |
| 323 | // The Metal decode window reads the model itself; the device copies of the weights the shared host code uploads for |
| 324 | // the CUDA-shaped kernels (the pack's dense pool, the native head, ...) are never read on Metal. On a small Mac their |