Skip to content

Commit

Permalink
Correct the number of allowable power profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Freehill authored and Chris Freehill committed Oct 6, 2018
1 parent d72d7eb commit f083c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rocm_smi/rocm_smi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f083c9c

Please sign in to comment.