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

Function validate_superOpIsSynced

quest/src/core/validation.cpp:2864–2872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2862}
2863
2864void validate_superOpIsSynced(SuperOp op, const char* caller) {
2865
2866 // we don't need to perform any sync check in CPU-only mode
2867 if (!mem_isAllocated(util_getGpuMemPtr(op)))
2868 return;
2869
2870 // check if GPU amps have EVER been overwritten; we sadly cannot check the LATEST changes were pushed though
2871 assertThat(*(op.wasGpuSynced), report::SUPER_OP_NOT_SYNCED_TO_GPU, caller);
2872}
2873
2874void validate_superOpDimMatchesTargs(SuperOp op, int numTargets, const char* caller) {
2875

Callers 2

mixSuperOpFunction · 0.85
reportSuperOpFunction · 0.85

Calls 3

mem_isAllocatedFunction · 0.85
util_getGpuMemPtrFunction · 0.85
assertThatFunction · 0.85

Tested by

no test coverage detected