NvAPI_GPU_GetAllClockFrequencies

Function NvAPI_GPU_GetAllClockFrequencies 

Source
pub unsafe fn NvAPI_GPU_GetAllClockFrequencies(
    hPhysicalGPU: NvPhysicalGpuHandle,
    pClkFreqs: *mut NV_GPU_CLOCK_FREQUENCIES,
) -> NvAPI_Status
Expand description

This function retrieves the NV_GPU_CLOCK_FREQUENCIES structure for the specified physical GPU.

For each clock domain:

  • bIsPresent is set for each domain that is present on the GPU
  • frequency is the domain’s clock freq in kHz

Each domain’s info is indexed in the array. For example: clkFreqs.domainNVAPI_GPU_PUBLIC_CLOCK_MEMORY holds the info for the MEMORY domain.