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

Function validate_krausMapIsSynced

quest/src/core/validation.cpp:3081–3089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3079}
3080
3081void validate_krausMapIsSynced(KrausMap map, const char* caller) {
3082
3083 // we don't need to perform any sync check in CPU-only mode
3084 if (!mem_isAllocated(util_getGpuMemPtr(map.superop)))
3085 return;
3086
3087 // assert the map's superoperator has been synced
3088 assertThat(*(map.superop.wasGpuSynced), report::KRAUS_MAP_NOT_SYNCED_TO_GPU, caller);
3089}
3090
3091void validate_krausMapIsCPTP(KrausMap map, const char* caller) {
3092 validate_krausMapFields(map, caller);

Callers 2

validate_krausMapIsCPTPFunction · 0.85
reportKrausMapFunction · 0.85

Calls 3

mem_isAllocatedFunction · 0.85
util_getGpuMemPtrFunction · 0.85
assertThatFunction · 0.85

Tested by

no test coverage detected