SWDEV-437776: Fixing typo for in stitch.py. Fixing singleDispatch kernel name.
Change-Id: I8d65598fffa4f15f78a64f741fdcb9a4a77af2a0
[ROCm/rocprofiler commit: 25a02fe03e]
Este cometimento está contido em:
cometido por
Giovanni Baraldi
ascendente
dbcf4ffd09
cometimento
064f77ecf3
@@ -575,6 +575,6 @@ def stitch(insts, raw_code, jumps, gfxv, bIsAuto, codeservice):
|
||||
)
|
||||
break
|
||||
line += 1
|
||||
print('Sucessfuly parsed', i, 'tokens')
|
||||
print('Success: Parsed', i, 'tokens')
|
||||
|
||||
return result, loopCount, mem_unroll, flight_count, maxline, len(result), pcskip
|
||||
|
||||
@@ -84,7 +84,8 @@ public:
|
||||
queue::Queue& queue_info,
|
||||
size_t writer_id,
|
||||
rocprofiler_buffer_id_t buffer_id,
|
||||
size_t stop_location
|
||||
size_t stop_location,
|
||||
const std::string& kernel_name
|
||||
);
|
||||
|
||||
void InsertPacketStop(
|
||||
|
||||
@@ -108,7 +108,8 @@ bool AttTracer::InsertPacketStart(
|
||||
queue::Queue& queue,
|
||||
size_t writer_id,
|
||||
rocprofiler_buffer_id_t buffer_id,
|
||||
size_t stop_id
|
||||
size_t stop_id,
|
||||
const std::string& kernel_name
|
||||
) {
|
||||
// Preparing att Packets
|
||||
packet_t start_packet{};
|
||||
@@ -139,7 +140,7 @@ bool AttTracer::InsertPacketStart(
|
||||
Packet::CreateBarrierPacket(&transformed_packets, &start_packet.completion_signal, nullptr);
|
||||
|
||||
uint64_t record_id = rocprofiler::ROCProfiler_Singleton::GetInstance().GetUniqueRecordId();
|
||||
AddKernelNameWithDispatchID("ATT_Contiguous", record_id);
|
||||
AddKernelNameWithDispatchID(kernel_name, record_id);
|
||||
|
||||
this->AddPendingSignals(
|
||||
writer_id,
|
||||
@@ -234,9 +235,14 @@ bool AttTracer::ATTContiguousWriteInterceptor(
|
||||
|
||||
if (insertStart)
|
||||
{
|
||||
size_t end_writer = insertStart->second;
|
||||
std::string name = GetKernelNameFromKsymbols(dispatchPackets.at(0)->kernel_object);
|
||||
if (insertStart->first != end_writer)
|
||||
name = "ATT_Start_" + name;
|
||||
|
||||
std::lock_guard<std::mutex> lk(att_enable_disable_mutex);
|
||||
bool b = InsertPacketStart(transformed, queue_info, writer_id, buffer_id, insertStart->second);
|
||||
if (!b) return false;
|
||||
bool bSuc = InsertPacketStart(transformed, queue_info, writer_id, buffer_id, end_writer, name);
|
||||
if (!bSuc) return false;
|
||||
}
|
||||
|
||||
bool bHasPending = false;
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador