From e2b09ef8cd3b0786f2f8a7f895da9cb77f5a3cb9 Mon Sep 17 00:00:00 2001 From: Chris Freehill Date: Fri, 5 Oct 2018 23:09:28 -0500 Subject: [PATCH] Correct the number of allowable power profiles [ROCm/rocm_smi_lib commit: f083c9c9198026a358c65042d38e9b3ac1b00e87] --- projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 53d72cc6a9..a6f98dc61a 100755 --- a/projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h +++ b/projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h @@ -184,7 +184,7 @@ typedef uint64_t rsmi_bit_field; /** * @brief Number of possible power profiles that a system could support */ -#define RSMI_MAX_NUM_POWER_PROFILES sizeof(rsmi_bit_field) +#define RSMI_MAX_NUM_POWER_PROFILES (sizeof(rsmi_bit_field) * 8) /** * @brief This structure contains information about which power profiles are