Skip to content

Commit

Permalink
Polish the log of executing matmul ops. (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
workingloong committed May 13, 2024
1 parent 79d1ffc commit 2160cdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlrover/trainer/torch/node_check/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ def wrapper(*args, **kwargs):
func(*args, **kwargs)
t = round(time.time() - start, 2)
local_rank = int(os.environ["LOCAL_RANK"])
func_name = func.__name__
logger.info(
f"Time to execute {func} on local rank {local_rank} is {t}."
f"Time to execute {func_name} on local rank {local_rank} is {t}s."
)

return wrapper
Expand Down

0 comments on commit 2160cdc

Please sign in to comment.