Add rsmi_dev_memory_busy_percent_get()

Change-Id: Ide683b6c72870af547331f4502c5bb8c445d61b5


[ROCm/amdsmi commit: 1c5e090507]
Dieser Commit ist enthalten in:
Chris Freehill committed 2019-06-25 19:09:13 -05:00
1 Ursprung 1ce6397e6b
Commit c2930981ee
9 Dateien geändert
+60 -7

Keine Dateien entsprechen Ihrer Suche

+18
Datei anzeigen
@@ -1118,6 +1118,24 @@ rsmi_status_t
rsmi_dev_memory_usage_get(uint32_t dv_ind, rsmi_memory_type_t mem_type,
uint64_t *used);
/**
* @brief Get percentage of time any device memory is being used
*
* @details Given a device index @p dv_ind, this function returns the
* percentage of time that any device memory is being used for the specified
* device.
*
* @param[in] dv_ind a device index
*
* @param[inout] busy_percent a pointer to the uint32_t to which the busy
* percent will be written
*
* @retval ::RSMI_STATUS_SUCCESS is returned upon successful call
*
*/
rsmi_status_t
rsmi_dev_memory_busy_percent_get(uint32_t dv_ind, uint32_t *busy_percent);
/** @} */ // end of MemQuer
/** @defgroup PhysQuer Physical State Queries
@@ -95,6 +95,7 @@ enum DevInfoTypes {
kDevPCIEReplayCount,
kDevUniqueId,
kDevDFCountersAvailable,
kDevMemBusyPercent,
};
class Device {