Fix counter collection inconsistency with rocprofv3
This commit is contained in:
@@ -371,9 +371,9 @@ class CounterFile:
|
|||||||
return self.blocks[block].add(counter)
|
return self.blocks[block].add(counter)
|
||||||
|
|
||||||
|
|
||||||
# TODO: This is a HACK
|
# FIXME: This is a HACK
|
||||||
def using_v3():
|
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
|
@demarcate
|
||||||
|
|||||||
@@ -224,7 +224,8 @@ def create_df_pmc(
|
|||||||
dfs.append(tmp_df)
|
dfs.append(tmp_df)
|
||||||
coll_levels.append(f[:-4])
|
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:
|
if verbose >= 2:
|
||||||
console_debug("pmc_raw_data final_single_df %s" % final_df.info)
|
console_debug("pmc_raw_data final_single_df %s" % final_df.info)
|
||||||
return final_df
|
return final_df
|
||||||
|
|||||||
Reference in New Issue
Block a user