MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / syncSuperOp

Function syncSuperOp

quest/src/api/channels.cpp:223–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221
222
223extern "C" void syncSuperOp(SuperOp op) {
224 validate_superOpFields(op, __func__);
225
226 // optionally overwrite GPU elements with user-modified CPU elements
227 if (mem_isAllocated(util_getGpuMemPtr(op)))
228 gpu_copyCpuToGpu(op);
229
230 // indicate that the matrix is now permanently GPU synchronised, even
231 // if we are not in GPU-accelerated mode - it hardly matters
232 *(op.wasGpuSynced) = 1;
233}
234
235
236extern "C" void syncKrausMap(KrausMap map) {

Callers 5

SECTIONFunction · 0.85
syncKrausMapFunction · 0.85
setAndSyncSuperOpElemsFunction · 0.85
demo_syncSuperOpFunction · 0.85
demo_syncSuperOpFunction · 0.85

Calls 4

validate_superOpFieldsFunction · 0.85
mem_isAllocatedFunction · 0.85
util_getGpuMemPtrFunction · 0.85
gpu_copyCpuToGpuFunction · 0.85

Tested by

no test coverage detected