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 484 of file environment.cpp.
484 {
485 validate_envIsInit(__func__);
486
488
489 int numThreads = cpu_isOpenmpCompiled()? cpu_getCurrentNumThreads() : 1;
490 int cuQuantum = env.isGpuAccelerated && gpu_isCuQuantumCompiled();
491 int gpuDirect = env.isGpuAccelerated && gpu_isDirectGpuCommPossible();
492
493 snprintf(str, 200, "CUDA=%d OpenMP=%d MPI=%d threads=%d ranks=%d cuQuantum=%d gpuDirect=%d",
494 env.isGpuAccelerated,
495 env.isMultithreaded,
496 env.isDistributed,
497 numThreads,
498 env.numNodes,
499 cuQuantum,
500 gpuDirect);
501}