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

Function assert_numTargsMatchesTemplateParam

quest/src/core/errors.cpp:364–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void assert_numTargsMatchesTemplateParam(int numTargs, int templateParam) {
365
366 // template parameter of -1 is always valid (it indicates the routine has not been compile-time optimised)
367 if (templateParam == -1)
368 return;
369
370 if (templateParam != numTargs)
371 raiseInternalError("A CPU or GPU subroutine received a number of targets inconsistent with its compile-time template parameter, as dispatched by accelerator.cpp.");
372}
373
374void assert_exponentMatchesTemplateParam(qcomp exponent, bool hasPower) {
375

Calls 1

raiseInternalErrorFunction · 0.85

Tested by

no test coverage detected