PetscLogGpuEnergyMeter#
turn on the logging of GPU energy (readings from energy meters) for GPU kernels
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscLogGpuEnergyMeter(void)
Options Database Key#
-log_view_gpu_energy_meter - provide the GPU energy (readings from energy meters) consumption for all events in the
-log_viewoutput
Note#
This option is mutually exclusive to -log_view_gpu_energy.
Developer Note#
This option turns on energy monitoring of GPU kernels. The energy consumption is measured directly using the NVML API
nvmlDeviceGetTotalEnergyConsumption(), which returns the total energy used by the GPU since the driver was last initialized.
For newer GPUs, energy readings are updated every 20-100ms, so this approach may be inaccurate for short-duration GPU events.
Level#
advanced
Location#
Index of all Log routines
Table of Contents for all manual pages
Index of all manual pages