Fix counter collection inconsistency with rocprofv3

[ROCm/rocprofiler-compute commit: 7e8d2d2c0e]
This commit is contained in:
Fei Zheng
2025-03-10 21:05:40 -06:00
committato da GitHub
parent 2167d9d295
commit 1ce11882a6
2 ha cambiato i file con 4 aggiunte e 3 eliminazioni
@@ -371,9 +371,9 @@ class CounterFile:
return self.blocks[block].add(counter)
# TODO: This is a HACK
# FIXME: This is a HACK
def using_v3():
return "ROCPROF" in os.environ.keys() and os.environ["ROCPROF"] == "rocprofv3"
return "ROCPROF" in os.environ.keys() and os.environ["ROCPROF"].endswith("rocprofv3")
@demarcate
@@ -224,7 +224,8 @@ def create_df_pmc(
dfs.append(tmp_df)
coll_levels.append(f[:-4])
final_df = pd.concat(dfs, keys=coll_levels, axis=1, copy=False)
# TODO: double check the case if all tmp_df.shape[0] are not on the same page
final_df = pd.concat(dfs, keys=coll_levels, axis=1, join="inner", copy=False)
if verbose >= 2:
console_debug("pmc_raw_data final_single_df %s" % final_df.info)
return final_df