-
Notifications
You must be signed in to change notification settings - Fork 683
[PG][TENT] Fix first-collective hangs on NVLink/MNNVL bootstrap #1755
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
Changes from all commits
8a6f8ff
1c77aba
7d609cb
e6f84ad
be77818
59759cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |||||||
| #include <cstring> | ||||||||
| #include <limits> | ||||||||
| #include <thread> | ||||||||
| #include "memory_location.h" | ||||||||
|
|
||||||||
| namespace mooncake { | ||||||||
|
|
||||||||
|
|
@@ -161,15 +162,14 @@ void P2PProxy::AllocateResources() { | |||||||
| } | ||||||||
| } | ||||||||
| } | ||||||||
|
|
||||||||
| int rc = engine_->registerLocalMemory(resources_.ctrl_send_region_, | ||||||||
| kMaxNumRanks * sizeof(P2PControlSlot), | ||||||||
| location_); | ||||||||
| kWildcardLocation); | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Registering
Suggested change
|
||||||||
| TORCH_CHECK(rc == 0, "Failed to register P2P ctrl send region"); | ||||||||
|
|
||||||||
| rc = engine_->registerLocalMemory(resources_.ctrl_recv_region_, | ||||||||
| kMaxNumRanks * sizeof(P2PControlSlot), | ||||||||
| location_); | ||||||||
| kWildcardLocation); | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, registering
Suggested change
|
||||||||
| TORCH_CHECK(rc == 0, "Failed to register P2P ctrl recv region"); | ||||||||
| } | ||||||||
|
|
||||||||
|
|
||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,6 +69,16 @@ Status CoroRpcAgent::start(uint16_t& port, bool ipv6) { | |
| server_ = new coro_rpc::coro_rpc_server(kRpcThreads, port); | ||
| server_->register_handler<&CoroRpcAgent::process>(this); | ||
| server_->async_start(); | ||
| const auto err = server_->get_errc(); | ||
| if (err) { | ||
| LOG(WARNING) | ||
| << "Failed to start RPC server(async_start) on port " | ||
| << port << ": " << err.message(); | ||
| delete server_; | ||
| server_ = nullptr; | ||
| port = 0; | ||
| continue; | ||
|
Comment on lines
+72
to
+80
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The added error checking for const auto err = server_->get_errc();
if (err) {
LOG(WARNING) << "Failed to start RPC server(async_start) on port " << port
<< ": " << err.message();
delete server_;
server_ = nullptr;
port = 0;
continue;
} |
||
| } | ||
| running_ = true; | ||
| return Status::OK(); | ||
| } catch (const std::exception& e) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.