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

Function validate_newMatrixAllocs

quest/src/core/validation.cpp:2121–2127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2119}
2120
2121void validate_newMatrixAllocs(CompMatr matr, const char* caller) {
2122
2123 bool isDenseMatrix = true;
2124 int numNodes = 1;
2125 size_t numBytes = mem_getLocalMatrixMemoryRequired(matr.numQubits, isDenseMatrix, numNodes);
2126 assertNewMatrixAllocsSucceeded(matr, numBytes, caller);
2127}
2128void validate_newMatrixAllocs(DiagMatr matr, const char* caller) {
2129
2130 bool isDenseMatrix = false;

Callers 1

validateMatrixAllocsFunction · 0.85

Calls 3

comm_getNumNodesFunction · 0.85

Tested by

no test coverage detected