MasterJH5574 commented on code in PR #17182:
URL: https://github.com/apache/tvm/pull/17182#discussion_r1688182439
##########
include/tvm/runtime/disco/disco_worker.h:
##########
@@ -68,6 +69,10 @@ class DiscoWorker {
int worker_id;
/*! \brief Total number of workers */
int num_workers;
+ /*! \brief The local worker id. This can be different from `worker_id` if
the session is
+ * consisted of multiple distritributed sub-sessions.
+ */
+ int local_worker_id;
Review Comment:
We introduced `int num_groups` in #17180 which causes some conflicts.
`local_worker_id` now equals to `worker_id % (num_workers / num_groups)`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]