SWDEV-254356 : Fix issues with hip memcpy info

Change-Id: I62053d13cd22883680e25072e679c8304497a152


[ROCm/rocprofiler commit: a7c66d99a5]
Tento commit je obsažen v:
Rachida Kebichi authored and Evgeny committed 2020-10-21 17:28:06 -05:00
1 rodič b50e7ddcdf
revize dcfa5dd45d
1 file changed
+2 -4
+2 -4
Zobrazit soubor
@@ -90,19 +90,17 @@ class MemManager:
duration = int(async_copy_end_time) - int(async_copy_start_time)
size = 0
m = size_ptrn.match(self.memcopies[key])
m = size_ptrn.search(self.memcopies[key])
if m:
size = m.group(1)
bandwidth = round(float(size) * 1000 / duration, 2)
tid = rec_vals[6]
copy_line_header = str(async_copy_start_time) + DELIM + str(async_copy_end_time) + DELIM + str(procid) + DELIM + str(tid)
copy_line_footer = 'BW=' + str(bandwidth) + DELIM + 'Async=' + 1
copy_line_footer = 'BW=' + str(bandwidth) + DELIM + 'Async=' + str(1)
data = copy_line_header + self.memcopies[key] + copy_line_footer
self.memcopies[key] = data
if data == '': fatal('register_activity: memcopy API record is not found')
return data
# add allocation to map