jinhongyii commented on code in PR #15870:
URL: https://github.com/apache/tvm/pull/15870#discussion_r1346066331
##########
src/runtime/disco/nccl/nccl.cc:
##########
@@ -140,9 +140,19 @@ struct CCLThreadLocalContext {
deviceStream_t default_stream = nullptr;
ncclComm_t comm;
- void Clear() { NCCL_CALL(ncclCommDestroy(comm)); }
+ void Clear() {
+ NCCL_CALL(ncclCommDestroy(comm));
+ if (default_stream != nullptr) {
Review Comment:
IIUC, default_stream is always nullptr
--
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]