PetscLogGpuEnergyMeterBegin#
Start energy meter for device
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscLogGpuEnergyMeterBegin(void)
Notes#
The GPU event energy meter captures the energy used by the GPU between PetscLogGpuEnergyMeterBegin() and PetscLogGpuEnergyMeterEnd().
PetscLogGpuEnergyMeterBegin() and PetscLogGpuEnergyMeterEnd() collect the energy readings using nvmlDeviceGetTotalEnergyConsumption().
The function cupmStreamSynchronize() is called before the energy query to ensure completion.
See Also#
Profiling, PetscLogView(), PetscLogGpuEnergyMeterEnd(), PetscLogGpuEnergyMeter()
Level#
intermediate
Location#
Index of all Log routines
Table of Contents for all manual pages
Index of all manual pages