-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flushing Proxy Channels at CPU side upon reaching the Inflight Request Limit #415
base: main
Are you sure you want to change the base?
Conversation
include/mscclpp/core.hpp
Outdated
/// Get the max inflight requests. | ||
/// | ||
/// @return max inflight requests. | ||
int maxInflightRequests(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name is not very accurate
include/mscclpp/core.hpp
Outdated
|
||
/// Constructor that takes a transport and sets the other fields to their default values. | ||
/// | ||
/// @param transport The transport to use. | ||
EndpointConfig(Transport transport) : transport(transport) {} | ||
EndpointConfig(Transport transport = Transport::Unknown, int maxInflightRequests = -1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add all other members as a constructor variable as well
src/connection.cc
Outdated
// CudaIpcConnection | ||
|
||
CudaIpcConnection::CudaIpcConnection(Endpoint localEndpoint, Endpoint remoteEndpoint, cudaStream_t stream) | ||
: stream_(stream) { | ||
: Connection(localEndpoint.maxInflightRequests() != -1 ? localEndpoint.maxInflightRequests() : INT_MAX), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can just use -1
instead of INT_MAX
, regarding -1 as infinite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want the same for EthernerConnection?
No description provided.