Output GPU index for kernel.txt files

Change-Id: Ib32e051bd035c0ecd30ba79b347fd65fe289c3fb
Tá an tiomantas seo le fáil i:
Giovanni LB údaraithe agus Giovanni Baraldi tiomanta 2024-10-25 19:41:19 -04:00
1 tuismitheoir a6328a1481
tiomantas 71dcc432da
3 comhad athraithe
+11 -3

Níor tháinig aon chomhaid le do chuardach

+1 -1
Féach ar an gComhad
@@ -210,7 +210,7 @@ bool AttTracer::AsyncSignalHandlerATT(hsa_signal_value_t /* signal */, void* dat
{
rocprofiler_record_att_tracer_t record{};
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.thread_id = rocprofiler_thread_id_t{pending.thread_id};
record.queue_idx = rocprofiler_queue_index_t{pending.queue_index};
+5 -1
Féach ar an gComhad
@@ -192,7 +192,11 @@ void AttTracer::InsertPacketStop(
rsignal.session_id_snapshot,
queue.GetQueueID(),
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});
+5 -1
Féach ar an gComhad
@@ -217,7 +217,11 @@ bool AttTracer::ATTSingleWriteInterceptor(
session_id_,
queue_info.GetQueueID(),
writer_id,
interrupt_signal
interrupt_signal,
HSASupport_Singleton::GetInstance()
.GetHSAAgentInfo(queue_info.GetGPUAgent().handle)
.GetDeviceInfo()
.getNumaNode()
});
}
/* Write the transformed packets to the hardware queue. */