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

Function get_device

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

Source from the content-addressed store, hash-verified

355}
356
357Error get_device(int* dev) { *dev = 0; return kSuccess; }
358Error set_device(int dev) { return dev == 0 ? kSuccess : fail(kErrorInvalidValue); }
359Error device_count(int* n) { *n = rt().dev ? 1 : 0; return kSuccess; }
360Error device_synchronize() {

Callers 15

device_summaryFunction · 0.85
device_infoFunction · 0.85
device_unified_memoryFunction · 0.85
benchFunction · 0.85
runFunction · 0.85
native_expert_groupedFunction · 0.85
launch_normal_qsa_vectorFunction · 0.85
qsa_attend_stepFunction · 0.85
native_iq4_xs_mmvqFunction · 0.85
down_chunkFunction · 0.85
fused_gr_read_multiFunction · 0.85
argmax_rows_wantedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected