Skip to content

Commit

Permalink
[CPU][DEBUG_CAPS] Fix average counters csv generation (#28068)
Browse files Browse the repository at this point in the history
csv file was generated by default by mistake
  • Loading branch information
EgorDuplensky authored Dec 16, 2024
1 parent 6d06a07 commit 8b38c88
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/plugins/intel_cpu/src/graph_dumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,16 @@ void average_counters(const Graph& graph) {
* - <nesting-level>_<graph-name>.csv
* For example: 0_MyModel.csv
*/

const std::string& path = graph.getConfig().debugCaps.averageCountersPath;

if (path.empty())
return;

static int graphIndex = 0;
std::string fileName = path + "_" + std::to_string(graphIndex++) + ".csv";

std::ofstream file;
std::string fileName =
graph.getConfig().debugCaps.averageCountersPath + "_" + std::to_string(graphIndex++) + ".csv";

file.open(fileName);

// table structure is identical to the benchmark_app average_counters report
Expand Down

0 comments on commit 8b38c88

Please sign in to comment.