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