Skip to content

Commit f6b046d

Browse files
committed
rocm: fix bug in get_gpu_events_count
1 parent b4bc400 commit f6b046d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/rocm/roc_profiler_v2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ get_gpu_events_count(unsigned int *events_id, int num_events, unsigned int gpu_i
530530
++j;
531531
}
532532

533-
*num_gpu_events = j - i + 1;
533+
*num_gpu_events = j - i;
534534
return PAPI_OK;
535535
}
536536

0 commit comments

Comments
 (0)