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

Function copy

engine/src/core/conversation_state.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44bool copy(void* dst, const void* src, size_t bytes, std::string& error, bool queued = false) {
45 if (!bytes) return true;
46 if (!dst || !src) return fail(error, "missing running-state buffer");
47 const auto status = conversation_detail::copy_nonblocking(dst, src, bytes, queued);
48 if (status == cudaSuccess) return true;
49 error = std::string("conversation snapshot running-state copy: ") + cudaGetErrorString(status);
50 return false;
51}
52
53// The session's carve (#216): `qsa_states` keeps global ordinals and holds the owned ones
54// [qsa_ord0, qsa_ord0 + qsa_alloc); `gdn_state` holds `gdn_alloc` rows. A whole-model session owns every layer.

Callers 15

upload_device_tableMethod · 0.70
ckpt_gather_smallFunction · 0.70
checkpoint_saveFunction · 0.70
capture_deferredMethod · 0.70
build_mm_promptFunction · 0.50
prefill_mmFunction · 0.50
encodeMethod · 0.50
build_mm_promptFunction · 0.50
prefill_mmFunction · 0.50
attn_caseFunction · 0.50

Calls 4

copy_nonblockingFunction · 0.85
failFunction · 0.70
stringFunction · 0.50
cudaGetErrorStringFunction · 0.50

Tested by 4

mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40