Solving Benjamin and Ammar comments. Enabling ATT tests with new API.
Change-Id: I96525cf4ebbe475435bf631abcdc18ab3e2f9a66
Este commit está contenido en:
cometido por
Giovanni Baraldi
padre
f715f4318a
commit
5384050b01
@@ -83,7 +83,7 @@ class att_plugin_t {
|
||||
|
||||
if (!att_tracer_record) return ROCPROFILER_STATUS_ERROR;
|
||||
|
||||
std::string kernel_name_mangled{};
|
||||
std::string kernel_name_mangled;
|
||||
// Found problem with rocprofiler API for invalid kernel_ids;
|
||||
if (att_tracer_record->kernel_id.handle != TEST_INVALID_KERNEL) {
|
||||
size_t name_length;
|
||||
|
||||
@@ -15,4 +15,3 @@ def dump_csv(code):
|
||||
writer = csv.writer(f)
|
||||
writer.writerow(['Line', 'Instruction', 'Hitcount', 'Cycles', 'Addr', 'C++ Reference'])
|
||||
[writer.writerow([m[5], m[0], m[7], m[8], hex(m[6]), m[3]]) for m in code]
|
||||
#[writer.writerow(m) for m in code]
|
||||
|
||||
@@ -159,7 +159,6 @@ class PCTranslator:
|
||||
def swappc(self, line, line_num, inst_index):
|
||||
try:
|
||||
loc = self.addrmap[self.insts[inst_index+1][2]]
|
||||
#print('Jumping to:', loc, self.code[loc])
|
||||
return loc
|
||||
except:
|
||||
print('SWAPPC: Could not find addr', self.insts[inst_index+1][2], 'for', line)
|
||||
@@ -167,7 +166,6 @@ class PCTranslator:
|
||||
def setpc(self, line, inst_index):
|
||||
try:
|
||||
loc = self.addrmap[self.insts[inst_index+1][2]]
|
||||
#print('Jumping to:', loc, self.code[loc])
|
||||
return loc
|
||||
except:
|
||||
print('SETPC: Could not find addr', self.insts[inst_index+1][2], 'for', line)
|
||||
@@ -212,14 +210,11 @@ def move_down_fork(fork, insts, i): #(fork : Fork, insts : list, i : int):
|
||||
and insts[i][1] == fork.insts[i+1].inst_type:
|
||||
i += 2
|
||||
else:
|
||||
#print('Failed at', i, insts[i])
|
||||
return False, i
|
||||
|
||||
if len(fork.insts) != len(insts):
|
||||
#print('Failed at the end at', i, insts[i])
|
||||
return False, i
|
||||
|
||||
#print('Reached end of ', fork.name)
|
||||
return True, i
|
||||
|
||||
FORK_TREE = Fork()
|
||||
@@ -490,9 +485,6 @@ def stitch(insts, raw_code, jumps, gfxv, bIsAuto):
|
||||
print('Parsing terminated at:', as_line)
|
||||
break
|
||||
|
||||
#print(matched, as_line)
|
||||
#print([WaveInstCategory[insts[i+k][1]] for k in range(10) if i+k < len(insts)])
|
||||
|
||||
if matched:
|
||||
result.append(inst + (reverse_map[line],))
|
||||
i += 1
|
||||
|
||||
Referencia en una nueva incidencia
Block a user