Repository navigation
Verbs fix: Removed Dependency on Duplicate Recv Flag - #12705
Merged
yifeif merged 4 commits intoSep 7, 2017
Merged
Conversation
added 2 commits
August 30, 2017 11:38
…ca of the send_recv_ops waiter table is stored. Values are added to the local table when remote is not ready for receiving our tensor. When we get an BUFFER_RESPONSE, we use ReSendNextItem instead of sendNextItem. Splitted SendNextItem And ReSend to two functions, move callback to new function for code reuse Clanged formatted Fixed according to shamoya's review, Fixed send->resend flow squached, rebased on origin/master
…o removed_dependancy_on_dup_flag_for_verbs
Collaborator
|
Can one of the admins verify this patch? |
Contributor
junshi15
reviewed
Aug 30, 2017
| ReItem* item = new ReItem(); | ||
| item->send_args = send_args; | ||
| item->recv_args = recv_args; | ||
| item->in = in; |
Contributor
Contributor
|
@yanivbl6, thanks for the quick response. It looks mostly good. I have a comment regarding the reference count. |
Added checks for context existaning before Ref()
Author
|
Thanks @junshi15, |
Contributor
|
It looks good to me. @shamoya any comment? |
Author
|
@shamoya participated in the code writing, and reviewed it prior to the PR. |
poxvoculi
approved these changes
Sep 2, 2017
| Tensor in; | ||
| bool is_dead; | ||
|
|
||
| ReItem(const Rendezvous::Args& send_args_, const Rendezvous::Args& recv_args_, const Tensor& in_, bool is_dead_ ): send_args(send_args_), recv_args(recv_args_), in(in_), is_dead(is_dead_){ |
Contributor
There was a problem hiding this comment.
too long line, break by col 80
| VLOG(2) << "Extend RDMA buffer from " << size_ << " to " << buffer_size; | ||
| } | ||
| CreateCPUBuffer(buffer_size, false); | ||
| //Need to be recieved again, put into the re-recv queue and the table |
Member
|
Jenkins, test this please. |
Contributor
|
@tensorflow-jenkins test this please |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is a response for #11825
I've added a new Queue and Table for the RdmaTensorBuffer, where the relevant information from the send-recv waiter table is stored in case the actual rdma-write does not occur (If the allocated buffer is too small, or busy). When we get a RDMA_MESSAGE_BUFFER_RESPONSE, or RDMA_MESSAGE_BUFFER_IDLE, we check the new queue/table instead of checking the waiter table. (This happens in the new ReSendNextItem() function).
Also added a new function that generates the callback lambda function, to avoid code redundancy.
The result is that the code is less clean- I am open to suggestions on making it more tidy.
@junshi15 @shamoya