Skip to content

Commit c740700

Browse files
committed
Close events that might have been started (even if starting a profiling event while doing nothing to the GPU seems dubious to me)
1 parent 385a251 commit c740700

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

parsec/mca/device/device_gpu.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,6 +1893,13 @@ parsec_device_progress_stream( parsec_device_gpu_module_t* gpu_device,
18931893
schedule_task:
18941894
rc = progress_fct( gpu_device, task, stream );
18951895
if(0 == rc) {
1896+
#if defined(PARSEC_PROF_TRACE)
1897+
if( stream->prof_event_track_enable ) {
1898+
if( task->prof_key_end != -1 ) {
1899+
PARSEC_PROFILING_TRACE(stream->profiling, task->prof_key_end, task->prof_event_id, task->prof_tp_id, NULL);
1900+
}
1901+
}
1902+
#endif
18961903
/* If progress_fct added nothing on that stream, we skip scheduling a record on the GPU stream */
18971904
if( task->complete_stage )
18981905
rc = task->complete_stage(gpu_device, &task, stream);

0 commit comments

Comments
 (0)