SWDEV-437776: Removed codeobj ATT error message for memory protocol

Change-Id: Iabe191edf5446a03afc4e1c81e5cf906476e5fcb


[ROCm/rocprofiler commit: 7b98e43276]
This commit is contained in:
Giovanni LB
2023-12-20 12:02:58 -03:00
parent 0f5bec223e
commit 44c150c7d4
2 changed files with 7 additions and 4 deletions
@@ -56,12 +56,15 @@
#define C_API_END(returndata) \
} catch (std::exception& e) \
{ \
std::cerr << "Codeobj API lookup error: " << e.what() << std::endl; \
std::string s = e.what(); \
if (s.find("memory protocol not supported!") == std::string::npos) \
std::cerr << "Codeobj API lookup: " << e.what() << std::endl; \
return returndata; \
} \
catch (std::string& s) \
{ \
std::cerr << "Codeobj API lookup error: " << s << std::endl; \
if (s.find("memory protocol not supported!") == std::string::npos) \
std::cerr << "Codeobj API lookup: " << s << std::endl; \
return returndata; \
} \
catch (...) \
+2 -2
View File
@@ -540,13 +540,13 @@ def stitch(insts, raw_code, jumps, gfxv, bIsAuto, codeservice):
print('WARNING: Parsing terminated at:', as_line)
break
if matched or as_line[1] != DONT_KNOW or 's_barrier' in as_line[0]:
if matched or as_line[1] != DONT_KNOW:
if matched:
inst.asmline = reverse_map[line]
result.append(inst)
i += 1
num_failed_stitches = 0
elif inst.type == IMMED and line != next and (not bGFX9 or 's_barrier' in as_line[0]):
elif not bGFX9 and inst.type == IMMED and line != next:
skipped_immed += 1
inst.asmline = reverse_map[line]
result.append(inst)