Skip to content

Commit

Permalink
Update tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
继盛 committed Mar 24, 2022
1 parent 819790c commit 902bb10
Show file tree
Hide file tree
Showing 2 changed files with 265 additions and 121 deletions.
4 changes: 2 additions & 2 deletions mars/learn/contrib/xgboost/start_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def execute(cls, ctx, op):

env = {"DMLC_NUM_WORKER": op.n_workers}
rabit_context = RabitTracker(
hostIP=ctx.get_local_host_ip(), nslave=op.n_workers
host_ip=ctx.get_local_host_ip(), n_workers=op.n_workers
)
env.update(rabit_context.slave_envs())
env.update(rabit_context.worker_envs())

rabit_context.start(op.n_workers)
thread = Thread(target=rabit_context.join)
Expand Down
Loading

0 comments on commit 902bb10

Please sign in to comment.