Skip to content

Commit

Permalink
Print current time in launch_bps
Browse files Browse the repository at this point in the history
  • Loading branch information
ruipeterpan authored Jan 18, 2021
1 parent f6c063e commit 16061e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion launcher/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import threading
import sys
import time
from datetime import datetime
from functools import reduce


Expand Down Expand Up @@ -178,7 +179,7 @@ def worker(local_rank, local_size, command, allocation=None):


def launch_bps():
print("BytePS launching " + os.environ["DMLC_ROLE"])
print(f"[{datetime.now().strftime("%H:%M:%S")}] BytePS launching {os.environ["DMLC_ROLE"]}")
sys.stdout.flush()
check_env()
if os.environ["DMLC_ROLE"] == "worker":
Expand Down

0 comments on commit 16061e9

Please sign in to comment.