From dcfa5dd45d002171f2d8da0cc7c081e43cc8e4b8 Mon Sep 17 00:00:00 2001 From: Rachida Kebichi Date: Wed, 21 Oct 2020 12:10:12 -0400 Subject: [PATCH] SWDEV-254356 : Fix issues with hip memcpy info Change-Id: I62053d13cd22883680e25072e679c8304497a152 [ROCm/rocprofiler commit: a7c66d99a5d3248f2d4a15fe95c8b419a4b15db8] --- projects/rocprofiler/bin/mem_manager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/projects/rocprofiler/bin/mem_manager.py b/projects/rocprofiler/bin/mem_manager.py index 72cb6c4c73..6f0e03dbee 100755 --- a/projects/rocprofiler/bin/mem_manager.py +++ b/projects/rocprofiler/bin/mem_manager.py @@ -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