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

Function assert_commPayloadIsPowerOf2

quest/src/core/errors.cpp:198–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void assert_commPayloadIsPowerOf2(qindex numAmps) {
199
200 if (!isPowerOf2(numAmps))
201 raiseInternalError("A communication function was given a payload which was unexpectedly not a power of 2, as implied by preconditions.");
202}
203
204void assert_commQuregIsDistributed(Qureg qureg) {
205

Callers 1

Calls 2

isPowerOf2Function · 0.85
raiseInternalErrorFunction · 0.85

Tested by

no test coverage detected