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

Function validateAndSyncMatrix

quest/src/api/matrices.cpp:359–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357// type T can be CompMatr, DiagMatr or FullStateDiagMatr
358template <class T>
359void validateAndSyncMatrix(T matr, const char* caller) {
360 validate_matrixFields(matr, caller);
361
362 // optionally overwrite GPU elements with user-modified CPU elements
363 if (mem_isAllocated(util_getGpuMemPtr(matr)))
364 gpu_copyCpuToGpu(matr);
365
366 markMatrixAsSynced(matr);
367}
368
369
370// de-mangled for both C++ and C compatibility

Callers 3

syncCompMatrFunction · 0.85
syncDiagMatrFunction · 0.85
syncFullStateDiagMatrFunction · 0.85

Calls 5

validate_matrixFieldsFunction · 0.85
mem_isAllocatedFunction · 0.85
util_getGpuMemPtrFunction · 0.85
gpu_copyCpuToGpuFunction · 0.85
markMatrixAsSyncedFunction · 0.85

Tested by

no test coverage detected