SWDEV-254356 : Fix issues with hip memcpy info

Change-Id: I62053d13cd22883680e25072e679c8304497a152


[ROCm/rocprofiler commit: a7c66d99a5]
Этот коммит содержится в:
Rachida Kebichi
2020-10-21 12:10:12 -04:00
коммит произвёл Evgeny
родитель b50e7ddcdf
Коммит dcfa5dd45d
+2 -4
Просмотреть файл
@@ -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