By default, only consider AMD GPU's in RSMI device list

With newly added initialization parameters that can be
passed to rsmi_init(), you can tell RSMI to consider other
devices.

Also:
-fixed incorrect header file name that would break in C
builds
-modified rsmi_init() and rsmi_shut_down() to reinitialize and
clear static structures


[ROCm/rocm_smi_lib commit: 2d847e3afd]
Tá an tiomantas seo le fáil i:
Chris Freehill
2019-05-09 18:55:15 -05:00
tuismitheoir d7f029f172
tiomantas 9288c55c40
D'athraigh 2 comhad le 17 breiseanna agus 0 scriosta
Ní thaispeántar comhad dénártha.
@@ -122,6 +122,20 @@ typedef enum {
//!< ennumerated by RSMI.
} rsmi_init_flags_t;
/**
* @brief Initialization flags
*
* Initialization flags may be OR'd together and passed to ::rsmi_init().
*/
typedef enum {
RSMI_INIT_FLAG_ALL_GPUS = 0x1, //!< Attempt to add all GPUs found
//!< (including non-AMD) to the list
//!< of devices from which SMI
//!< information can be retrieved. By
//!< default, only AMD devices are
//!< ennumerated by RSMI.
} rsmi_init_flags_t;
/**
* @brief PowerPlay performance levels
*/
@@ -165,6 +179,9 @@ typedef enum {
RSMI_SW_COMP_LAST = RSMI_SW_COMP_DRIVER
} rsmi_sw_component_t;
/**
* Clock types
*/
typedef enum {
RSMI_CLK_TYPE_SYS = 0x0, //!< System clock
RSMI_CLK_TYPE_FIRST = RSMI_CLK_TYPE_SYS,