From 9a68c056301cd03a7a0d1dc6b7d751a379fa2f04 Mon Sep 17 00:00:00 2001 From: Chris Freehill Date: Thu, 9 May 2019 18:55:15 -0500 Subject: [PATCH] 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/amdsmi commit: ae7ca83920eae693fe1ccdd68d721b64c5289c85] --- projects/amdsmi/include/rocm_smi/rocm_smi.h | 28 --------------------- 1 file changed, 28 deletions(-) diff --git a/projects/amdsmi/include/rocm_smi/rocm_smi.h b/projects/amdsmi/include/rocm_smi/rocm_smi.h index e867c6258f..d36c67f9dd 100755 --- a/projects/amdsmi/include/rocm_smi/rocm_smi.h +++ b/projects/amdsmi/include/rocm_smi/rocm_smi.h @@ -122,34 +122,6 @@ 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 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 */