Skip to content

Commit

Permalink
hwgraph: Fixing error message
Browse files Browse the repository at this point in the history
When hwgraph find an unsupported engine, it prints a message.
This message is using the engine module name as the engine name making a
confusing output.

This commit use the engine name instead of the engine module.

Signed-off-by: Erwan Velu <e.velu@criteo.com>
  • Loading branch information
ErwanAliasr1 committed Nov 4, 2024
1 parent 7b77661 commit 213ac66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def prepare_perf_metrics(self) -> tuple[list, str]:
em = self.engine_module()
# Preparing the performance metric to graph
if self.engine() not in ["stressng", "sleep"]:
fatal(f"Unsupported {em} engine")
fatal(f"Unsupported {self.engine()} engine")
if self.engine() == "stressng":
if em in ["cpu", "qsort", "vnni"]:
perf_list = ["bogo ops/s"]
Expand Down

0 comments on commit 213ac66

Please sign in to comment.