Skip to content

Commit 2fad92c

Browse files
authored
[proton] Fix the missing 'break' in RoctracerProfiler (#7661)
In apiCallback() function case HIP_API_ID_hipStreamEndCapture is missing a 'break' and causing unintentional fall-through to HIP_API_ID_hipLaunchKernel.
1 parent 70f9020 commit 2fad92c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

third_party/proton/csrc/lib/Profiler/RocTracer/RoctracerProfiler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ void RoctracerProfiler::RoctracerProfilerPimpl::apiCallback(
271271
uint32_t StreamCaptureCount = pImpl->StreamToCaptureCount[Stream];
272272
pImpl->GraphToNumInstances[Graph] = StreamCaptureCount;
273273
pImpl->StreamToCapture.erase(Stream);
274+
break;
274275
}
275276
case HIP_API_ID_hipLaunchKernel: {
276277
hipStream_t Stream = data->args.hipLaunchKernel.stream;

0 commit comments

Comments
 (0)