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

Function sync

engine/src/core/conversation_state.cpp:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool sync(std::string& error) {
38 const auto status = cudaDeviceSynchronize();
39 if (status == cudaSuccess) return true;
40 error = std::string("conversation snapshot synchronize: ") + cudaGetErrorString(status);
41 return false;
42}
43
44bool copy(void* dst, const void* src, size_t bytes, std::string& error, bool queued = false) {
45 if (!bytes) return true;

Calls 3

cudaDeviceSynchronizeFunction · 0.50
stringFunction · 0.50
cudaGetErrorStringFunction · 0.50

Tested by

no test coverage detected