Skip to content

Commit

Permalink
intel_gpu: allow larger number of groups
Browse files Browse the repository at this point in the history
There were previously only 8 bits allotted to enumerate the metric
groups, limited the number of groups to 256.
However, there are at least 1433 groups available on the Intel Ponte
Vecchio architecture.

These changes have been tested on the Intel Ponte Vecchio architecture.
  • Loading branch information
dbarry9 committed Oct 3, 2024
1 parent af2dc8a commit d057767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/intel_gpu/internal/inc/GPUMetricInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ typedef struct MetricNode_S {
* metric code: group(8) + metrics(8)
*/
#define METRIC_BITS 8
#define METRIC_GROUP_MASK 0xff00
#define METRIC_GROUP_MASK 0xfff00
#define METRIC_MASK 0x00ff

#define CreateGroupCode(mGroupId) (((mGroupId+1)<<METRIC_BITS) & METRIC_GROUP_MASK)
Expand Down

0 comments on commit d057767

Please sign in to comment.