Skip to content

Commit

Permalink
add error logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sraikund16 committed Oct 14, 2024
1 parent 67c4298 commit 5898b51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libkineto/src/CuptiActivityProfiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,12 @@ void CuptiActivityProfiler::collectTrace(
}

#if defined(HAS_CUPTI) || defined(HAS_ROCTRACER)
ecs_.cupti_stopped_early = cupti_.stopCollection;
if (cupti_.stopCollection) {
ecs_.cupti_stopped_early = cupti_.stopCollection;
LOG(ERROR)
<< "State: CollectTrace stopped by CUPTI. (Buffer size configured is "
<< config_->activitiesMaxGpuBufferSize() / 1024 / 1024 << "MB)";
}
#endif // HAS_CUPTI || HAS_ROCTRACER
std::lock_guard<std::recursive_mutex> guard(mutex_);
stopTraceInternal(now);
Expand Down

0 comments on commit 5898b51

Please sign in to comment.