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

Function mem_getLocalQuregMemoryRequired

quest/src/core/memory.cpp:310–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308
309
310size_t mem_getLocalQuregMemoryRequired(int numQubits, bool isDensityMatr, int numNodes) {
311
312 // Quregs may need buffers for inter-node communication, depending on numNodes > 1
313 bool hasBuffers = true;
314 return getLocalMemoryRequired(numQubits, numNodes, isDensityMatr, hasBuffers);
315}
316
317
318size_t mem_getLocalQuregMemoryRequired(qindex numAmpsPerNode) {

Callers 4

gpu_allocArrayFunction · 0.85
printMemoryInfoFunction · 0.85
reportQuregFunction · 0.85

Calls 2

getLocalMemoryRequiredFunction · 0.85

Tested by

no test coverage detected