Skip to content

Commit

Permalink
Use the default stream for CudaIpcConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
chhwang committed Nov 9, 2024
1 parent 76ede02 commit 68db835
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ MSCCLPP_API_CPP std::shared_ptr<Connection> 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<CudaStreamWithFlags>(cudaStreamNonBlocking);
}
conn = std::make_shared<CudaIpcConnection>(localEndpoint, remoteEndpoint, cudaStream_t(*(pimpl_->ipcStream_)));
conn = std::make_shared<CudaIpcConnection>(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);
Expand Down

0 comments on commit 68db835

Please sign in to comment.