@@ -184,7 +184,7 @@ void ActivityProfiler::processCpuTrace(
184184 CpuGpuSpanPair& span_pair = recordTraceSpan (cpuTrace.span , cpuTrace.gpuOpCount );
185185 TraceSpan& cpu_span = span_pair.first ;
186186 for (auto const & act : cpuTrace.activities ) {
187- VLOG (2 ) << act.correlationId () << " : OP " << act.opType ;
187+ VLOG (2 ) << act.correlationId () << " : OP " << act.activityName ;
188188 if (logTrace) {
189189 logger.handleCpuActivity (act, cpu_span);
190190 }
@@ -228,10 +228,10 @@ inline void ActivityProfiler::handleCorrelationActivity(
228228}
229229#endif // HAS_CUPTI
230230
231- const libkineto::ClientTraceActivity &
232- ActivityProfiler::ExternalEventMap::getClientTraceActivity (
231+ const libkineto::GenericTraceActivity &
232+ ActivityProfiler::ExternalEventMap::getGenericTraceActivity (
233233 uint32_t id, CorrelationFlowType flowType) {
234- static const libkineto::ClientTraceActivity nullOp_{};
234+ static const libkineto::GenericTraceActivity nullOp_{};
235235
236236 auto & correlationMap = getCorrelationMap (flowType);
237237
@@ -246,7 +246,7 @@ ActivityProfiler::ExternalEventMap::getClientTraceActivity(
246246}
247247
248248void ActivityProfiler::ExternalEventMap::insertEvent (
249- const libkineto::ClientTraceActivity * op) {
249+ const libkineto::GenericTraceActivity * op) {
250250 if (events_[op->correlationId ()] != nullptr ) {
251251 LOG_EVERY_N (WARNING, 100 )
252252 << " Events processed out of order - link will be missing" ;
@@ -270,8 +270,8 @@ static void initUserGpuSpan(GenericTraceActivity& userTraceActivity,
270270 const libkineto::TraceActivity& cpuTraceActivity,
271271 const libkineto::TraceActivity& gpuTraceActivity) {
272272 userTraceActivity.device = gpuTraceActivity.deviceId ();
273- userTraceActivity.resource = gpuTraceActivity.resourceId ();
274273 userTraceActivity.startTime = gpuTraceActivity.timestamp ();
274+ userTraceActivity.sysThreadId = gpuTraceActivity.resourceId ();
275275 userTraceActivity.endTime = gpuTraceActivity.timestamp () + gpuTraceActivity.duration ();
276276 userTraceActivity.correlation = cpuTraceActivity.correlationId ();
277277 userTraceActivity.activityType = cpuTraceActivity.type ();
@@ -331,8 +331,8 @@ inline void ActivityProfiler::handleRuntimeActivity(
331331 VLOG (2 ) << activity->correlationId
332332 << " : CUPTI_ACTIVITY_KIND_RUNTIME, cbid=" << activity->cbid
333333 << " tid=" << activity->threadId ;
334- const ClientTraceActivity & ext =
335- externalEvents_.getClientTraceActivity (activity->correlationId ,
334+ const GenericTraceActivity & ext =
335+ externalEvents_.getGenericTraceActivity (activity->correlationId ,
336336 ExternalEventMap::CorrelationFlowType::Default);
337337 int32_t tid = activity->threadId ;
338338 const auto & it = threadInfo_.find (tid);
@@ -397,8 +397,8 @@ inline void ActivityProfiler::handleGpuActivity(
397397 if (!loggingDisabled (ext)) {
398398 act.log (*logger);
399399 updateGpuNetSpan (act);
400- const ClientTraceActivity & extUser =
401- externalEvents_.getClientTraceActivity (act.correlationId (),
400+ const GenericTraceActivity & extUser =
401+ externalEvents_.getGenericTraceActivity (act.correlationId (),
402402 ExternalEventMap::CorrelationFlowType::User);
403403 // Correlated CPU activity cannot have timestamp greater than the GPU activity's
404404 if (!timestampsInCorrectOrder (extUser, act)) {
@@ -415,7 +415,7 @@ inline void ActivityProfiler::handleGpuActivity(
415415
416416template <class T >
417417inline void ActivityProfiler::handleGpuActivity (const T* act, ActivityLogger* logger) {
418- const ClientTraceActivity & extDefault = externalEvents_.getClientTraceActivity (act->correlationId ,
418+ const GenericTraceActivity & extDefault = externalEvents_.getGenericTraceActivity (act->correlationId ,
419419 ExternalEventMap::CorrelationFlowType::Default);
420420 handleGpuActivity (GpuActivity<T>(act, extDefault), logger);
421421}
0 commit comments