From 4ba91a972c6914919fd88c62ba37a714ef2cc211 Mon Sep 17 00:00:00 2001 From: rachida Date: Mon, 7 Jun 2021 17:45:44 -0400 Subject: [PATCH] SWDEV-284863 Removed accidental override of recordid recordid cannot be just a counter. The code removed was doing just that i.e. incrementing a counter. Recordid has to come from recvals data structure. That code was left there since a while when Evgeny and Rachida were trying to prototype this feature. I am not sure why it was not spotted before. Change-Id: Ia867066dcfca083fcd4111f2aefc2fec88c26314 --- bin/mem_manager.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bin/mem_manager.py b/bin/mem_manager.py index d2f0e8f1db..d466c37549 100755 --- a/bin/mem_manager.py +++ b/bin/mem_manager.py @@ -45,7 +45,6 @@ class MemManager: self.allocations = {} self.hsa_agent_types = {} self.memcopies = {} - self.memcpy_index = {} self.filename = '' self.fd = 0 self.parse_hsa_handles(indir + '/' + 'hsa_handles.txt'); @@ -262,12 +261,6 @@ class MemManager: m_basic_hsa = hsa_memcpy_ptrn.match(args) m_basic_hsa2 = hsa_memcpy_ptrn2.match(args) is_hip = True if not (m_basic_hsa_prev or m_basic_hsa or m_basic_hsa2) else False - if not is_hip: - if procid in self.memcpy_index.keys(): - self.memcpy_index[procid] += 1 - else: - self.memcpy_index[procid] = 0 - recordid = self.memcpy_index[procid] m_2d = hip_memcpy_ptrn2.match(args) m_array = hip_memcpy_ptrn3.match(args) is_async = 1 if async_event_ptrn.search(event) else 0