| 460 | |
| 461 | |
| 462 | void reportQuESTEnv() { |
| 463 | validate_envIsInit(__func__); |
| 464 | validate_numReportedNewlinesAboveZero(__func__); // because trailing newline mandatory |
| 465 | |
| 466 | /// @todo add function to write this output to file (useful for HPC debugging) |
| 467 | |
| 468 | print_label("QuEST execution environment"); |
| 469 | |
| 470 | bool statevec = false; |
| 471 | bool densmatr = true; |
| 472 | |
| 473 | // we attempt to report properties of available hardware facilities |
| 474 | // (e.g. number of CPU cores, number of GPUs) even if the environment is not |
| 475 | // making use of them, to inform the user how they might change deployment. |
| 476 | printPrecisionInfo(); |
| 477 | printCompilationInfo(); |
| 478 | printDeploymentInfo(); |
| 479 | printCpuInfo(); |
| 480 | printGpuInfo(); |
| 481 | printDistributionInfo(); |
| 482 | printQuregSizeLimits(statevec); |
| 483 | printQuregSizeLimits(densmatr); |
| 484 | printQuregAutoDeployments(statevec); |
| 485 | printQuregAutoDeployments(densmatr); |
| 486 | |
| 487 | // exclude mandatory newline above |
| 488 | print_oneFewerNewlines(); |
| 489 | } |
| 490 | |
| 491 | |
| 492 | void getEnvironmentString(char str[200]) { |
no test coverage detected