Output GPU index for kernel.txt files
Change-Id: Ib32e051bd035c0ecd30ba79b347fd65fe289c3fb
[ROCm/rocprofiler commit: 71dcc432da]
Αυτή η υποβολή περιλαμβάνεται σε:
1 γονέας
dc25330772
υποβολή
76e25cff42
3 files changed
+11
-3
No files matched your search
@@ -210,7 +210,7 @@ bool AttTracer::AsyncSignalHandlerATT(hsa_signal_value_t /* signal */, void* dat
|
|||||||
{
|
{
|
||||||
rocprofiler_record_att_tracer_t record{};
|
rocprofiler_record_att_tracer_t record{};
|
||||||
record.kernel_id = rocprofiler_kernel_id_t{pending.kernel_descriptor};
|
record.kernel_id = rocprofiler_kernel_id_t{pending.kernel_descriptor};
|
||||||
record.gpu_id = rocprofiler_agent_id_t{(uint64_t)queue_info_session->agent.handle};
|
record.gpu_id = rocprofiler_agent_id_t{(uint64_t)queue_info_session->gpu_index};
|
||||||
record.kernel_properties = pending.kernel_properties;
|
record.kernel_properties = pending.kernel_properties;
|
||||||
record.thread_id = rocprofiler_thread_id_t{pending.thread_id};
|
record.thread_id = rocprofiler_thread_id_t{pending.thread_id};
|
||||||
record.queue_idx = rocprofiler_queue_index_t{pending.queue_index};
|
record.queue_idx = rocprofiler_queue_index_t{pending.queue_index};
|
||||||
|
|||||||
@@ -192,7 +192,11 @@ void AttTracer::InsertPacketStop(
|
|||||||
rsignal.session_id_snapshot,
|
rsignal.session_id_snapshot,
|
||||||
queue.GetQueueID(),
|
queue.GetQueueID(),
|
||||||
rsignal.writer_id,
|
rsignal.writer_id,
|
||||||
interrupt_signal
|
interrupt_signal,
|
||||||
|
HSASupport_Singleton::GetInstance()
|
||||||
|
.GetHSAAgentInfo(agent_handle)
|
||||||
|
.GetDeviceInfo()
|
||||||
|
.getNumaNode()
|
||||||
});
|
});
|
||||||
|
|
||||||
//codeobj_record::stop_capture(rocprofiler_record_id_t{rsignal.record_id});
|
//codeobj_record::stop_capture(rocprofiler_record_id_t{rsignal.record_id});
|
||||||
|
|||||||
@@ -217,7 +217,11 @@ bool AttTracer::ATTSingleWriteInterceptor(
|
|||||||
session_id_,
|
session_id_,
|
||||||
queue_info.GetQueueID(),
|
queue_info.GetQueueID(),
|
||||||
writer_id,
|
writer_id,
|
||||||
interrupt_signal
|
interrupt_signal,
|
||||||
|
HSASupport_Singleton::GetInstance()
|
||||||
|
.GetHSAAgentInfo(queue_info.GetGPUAgent().handle)
|
||||||
|
.GetDeviceInfo()
|
||||||
|
.getNumaNode()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/* Write the transformed packets to the hardware queue. */
|
/* Write the transformed packets to the hardware queue. */
|
||||||
|
|||||||
Reference in new issue
Block a user