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

Function printPrecisionInfo

quest/src/api/environment.cpp:163–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162
163void printPrecisionInfo() {
164
165 /// @todo
166 /// - report MPI qcomp type?
167 /// - report CUDA qcomp type?
168 /// - report CUDA kernel qcomp type?
169
170 print_table(
171 "precision", {
172 {"qreal", printer_getQrealType() + " (" + printer_getMemoryWithUnitStr(sizeof(qreal)) + ")"},
173
174 /// @todo this is showing the backend C++ qcomp type, rather than that actually wieldable
175 /// by the user which could the C-type. No idea how to solve this however!
176 {"qcomp", printer_getQcompType() + " (" + printer_getMemoryWithUnitStr(sizeof(qcomp)) + ")"},
177
178 {"qindex", printer_getQindexType() + " (" + printer_getMemoryWithUnitStr(sizeof(qindex)) + ")"},
179
180 /// @todo this currently prints 0 when epsilon is inf (encoded by zero), i.e. disabled
181 {"validationEpsilon", printer_toStr(validateconfig_getEpsilon())},
182 });
183}
184
185
186void printCompilationInfo() {

Callers 1

reportQuESTEnvFunction · 0.85

Calls 7

print_tableFunction · 0.85
printer_getQrealTypeFunction · 0.85
printer_getQcompTypeFunction · 0.85
printer_getQindexTypeFunction · 0.85
printer_toStrFunction · 0.50

Tested by

no test coverage detected