Skip to content

Commit

Permalink
intel_gpu: remove extraneous check for group
Browse files Browse the repository at this point in the history
The metric group should not be checked when PAPI_add_event() is called.
It should be checked upon PAPI_start() only.

These changes have been tested on the Intel Ponte Vecchio architecture.
  • Loading branch information
dbarry9 committed Oct 3, 2024
1 parent d057767 commit 437cee0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/intel_gpu/linux_intel_gpu_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@ addMetricToDevice(uint32_t code, int rootDev) {
uint32_t i=0;
for (i=0; i<num_active_devices; i++) {
if (active_devices[i].device_code == devcode) {
if (active_devices[i].mgroup_code != group) {
// conflict with existing metric group
GPUDEBUG("intel_gpu: metrics from more than one group cannot be collected "
" in the same device at the same time. "
" Failed with return code 0x%x \n", PAPI_ENOSUPP);
return -1;
}
break;
}
}
Expand Down

0 comments on commit 437cee0

Please sign in to comment.