MCPcopy Create free account
hub / github.com/Niko1221/Strata / host_view

Function host_view

engine/metal/src/gpu/runtime.cpp:317–321  ·  view source on GitHub ↗

---------------------------------------------------------------------------------------------------- runtime.hpp

Source from the content-addressed store, hash-verified

315
316// ---------------------------------------------------------------------------------------------------- runtime.hpp
317void* 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

Callers 3

sample_runMethod · 0.85
mrope_table_setFunction · 0.85
mainFunction · 0.85

Calls 1

findFunction · 0.70

Tested by 1

mainFunction · 0.68