| 221 | |
| 222 | |
| 223 | extern "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 | |
| 236 | extern "C" void syncKrausMap(KrausMap map) { |
no test coverage detected