| 3079 | } |
| 3080 | |
| 3081 | void 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 | |
| 3091 | void validate_krausMapIsCPTP(KrausMap map, const char* caller) { |
| 3092 | validate_krausMapFields(map, caller); |
no test coverage detected