Functions for printing Qureg states or reporting their configuration.
More...
Functions for printing Qureg states or reporting their configuration.
◆ reportQureg()
| void reportQureg |
( |
Qureg | qureg | ) |
|
- Note
- Documentation for this function or struct is under construction!
- Warning
- This function has not yet been unit tested and may contain bugs. Please use with caution!
- See also
-
Definition at line 384 of file qureg.cpp.
384 {
385 validate_quregFields(qureg, __func__);
386 validate_numReportedNewlinesAboveZero(__func__);
387
388
389
390 size_t localMem = mem_getLocalQuregMemoryRequired(qureg.numAmpsPerNode);
391 if (qureg.isDistributed)
392 localMem *= 2;
393
394
395 localMem += sizeof(qureg);
396
397 printer_sync();
398
399 print_header(qureg, localMem);
400 print_elems(qureg);
401
402
403 print_oneFewerNewlines();
404
405 printer_sync();
406}
◆ reportQuregParams()
| void reportQuregParams |
( |
Qureg | qureg | ) |
|
- Note
- Documentation for this function or struct is under construction!
- Warning
- This function has not yet been unit tested and may contain bugs. Please use with caution!
- See also
-
Definition at line 363 of file qureg.cpp.
363 {
364 validate_quregFields(qureg, __func__);
365 validate_numReportedNewlinesAboveZero(__func__);
366
367
368
369 printer_sync();
370
371 print_label("Qureg");
372 printDeploymentInfo(qureg);
373 printDimensionInfo(qureg);
374 printDistributionInfo(qureg);
375 printMemoryInfo(qureg);
376
377
378 print_oneFewerNewlines();
379
380 printer_sync();
381}