Fix counter collection inconsistency with rocprofv3
[ROCm/rocprofiler-compute commit: 7e8d2d2c0e]
This commit is contained in:
@@ -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
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user