From 7e8cd2a34e001ec390b6888d1ee2d6616cb1d0aa Mon Sep 17 00:00:00 2001 From: Chris Freehill <13054697+cfreehill@users.noreply.github.com> Date: Thu, 9 May 2019 20:59:57 -0500 Subject: [PATCH] Remove duplicate definition of rsmi_init_flags_t (#37) * 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 * 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 * Remove duplicate definition of rsmi_init_flags_t [ROCm/rocm_smi_lib commit: a0014f34df6cf0f745240d533b65f441510dbca7] --- projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h b/projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h index e867c6258f..ab19a3fc54 100755 --- a/projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h +++ b/projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h @@ -150,6 +150,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 */