From 68db8352705683dec2d22b1b7803cd582301b37a Mon Sep 17 00:00:00 2001 From: Changho Hwang Date: Sat, 9 Nov 2024 02:38:32 +0000 Subject: [PATCH] Use the default stream for CudaIpcConnection --- src/context.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/context.cc b/src/context.cc index 12b52b78a..7f8ed57be 100644 --- a/src/context.cc +++ b/src/context.cc @@ -43,10 +43,7 @@ MSCCLPP_API_CPP std::shared_ptr Context::connect(Endpoint localEndpo if (remoteEndpoint.transport() != Transport::CudaIpc) { throw mscclpp::Error("Local transport is CudaIpc but remote is not", ErrorCode::InvalidUsage); } - if (!(pimpl_->ipcStream_)) { - pimpl_->ipcStream_ = std::make_shared(cudaStreamNonBlocking); - } - conn = std::make_shared(localEndpoint, remoteEndpoint, cudaStream_t(*(pimpl_->ipcStream_))); + conn = std::make_shared(localEndpoint, remoteEndpoint, cudaStream_t(0)); } else if (AllIBTransports.has(localEndpoint.transport())) { if (!AllIBTransports.has(remoteEndpoint.transport())) { throw mscclpp::Error("Local transport is IB but remote is not", ErrorCode::InvalidUsage);