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