Functions for getting debugging information.
More...
Functions for getting debugging information.
◆ getEnvironmentString()
| void getEnvironmentString |
( |
char | str[200] | ) |
|
- 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!
Definition at line 492 of file environment.cpp.
492 {
493 validate_envIsInit(__func__);
494
496
497 int numThreads = cpu_isOpenmpCompiled()? cpu_getAvailableNumThreads() : 1;
498 int cuQuantum = env.isGpuAccelerated && gpu_isCuQuantumCompiled();
499 int gpuDirect = env.isGpuAccelerated && gpu_isDirectGpuCommPossible();
500
501 snprintf(str, 200, "CUDA=%d OpenMP=%d MPI=%d threads=%d ranks=%d cuQuantum=%d gpuDirect=%d",
502 env.isGpuAccelerated,
503 env.isMultithreaded,
504 env.isDistributed,
505 numThreads,
506 env.numNodes,
507 cuQuantum,
508 gpuDirect);
509}