Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210130121
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210130121
Commits
18787e3f
Commit
18787e3f
authored
3 years ago
by
lambda7xx
Browse files
Options
Downloads
Patches
Plain Diff
use the pending instead of the ending
parent
b1c64131
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
oneflow/core/comm_network/ibverbs/ibverbs_qp.cpp
+4
-4
4 additions, 4 deletions
oneflow/core/comm_network/ibverbs/ibverbs_qp.cpp
oneflow/core/comm_network/ibverbs/ibverbs_qp.h
+1
-1
1 addition, 1 deletion
oneflow/core/comm_network/ibverbs/ibverbs_qp.h
with
5 additions
and
5 deletions
oneflow/core/comm_network/ibverbs/ibverbs_qp.cpp
+
4
−
4
View file @
18787e3f
...
...
@@ -190,7 +190,7 @@ void IBVerbsQP::PostSendRequest(const ActorMsg& msg) {
}
void
IBVerbsQP
::
EnqueuePostSendReadWR
(
ibv_send_wr
wr
,
ibv_sge
sge
)
{
std
::
unique_lock
<
std
::
mutex
>
ending_send_wr_lock_
(
pending_send_wr_mutex_
);
std
::
unique_lock
<
std
::
mutex
>
p
ending_send_wr_lock_
(
pending_send_wr_mutex_
);
if
(
num_outstanding_send_wr_
<
max_outstanding_send_wr_
)
{
num_outstanding_send_wr_
++
;
ibv_send_wr
*
bad_wr
=
nullptr
;
...
...
@@ -208,7 +208,7 @@ void IBVerbsQP::ReadDone(WorkRequestId* wr_id) {
Global
<
CommNet
>::
Get
()
->
ReadDone
(
wr_id
->
read_id
);
DeleteWorkRequestId
(
wr_id
);
}
PostPend
d
ingSendWR
();
PostPendingSendWR
();
}
void
IBVerbsQP
::
SendDone
(
WorkRequestId
*
wr_id
)
{
...
...
@@ -228,8 +228,8 @@ void IBVerbsQP::RecvDone(WorkRequestId* wr_id) {
DeleteWorkRequestId
(
wr_id
);
}
void
IBVerbsQP
::
PostPend
d
ingSendWR
()
{
std
::
unique_lock
<
std
::
mutex
>
ending_send_wr_lock_
(
pending_send_wr_mutex_
);
void
IBVerbsQP
::
PostPendingSendWR
()
{
std
::
unique_lock
<
std
::
mutex
>
p
ending_send_wr_lock_
(
pending_send_wr_mutex_
);
if
(
pending_send_wr_queue_
.
empty
()
==
false
)
{
std
::
pair
<
ibv_send_wr
,
ibv_sge
>
ibv_send_wr_sge
=
std
::
move
(
pending_send_wr_queue_
.
front
());
ibv_send_wr
wr
=
ibv_send_wr_sge
.
first
;
...
...
This diff is collapsed.
Click to expand it.
oneflow/core/comm_network/ibverbs/ibverbs_qp.h
+
1
−
1
View file @
18787e3f
...
...
@@ -71,7 +71,7 @@ class IBVerbsQP final {
private
:
void
EnqueuePostSendReadWR
(
ibv_send_wr
wr
,
ibv_sge
sge
);
void
PostPend
d
ingSendWR
();
void
PostPendingSendWR
();
WorkRequestId
*
NewWorkRequestId
();
void
DeleteWorkRequestId
(
WorkRequestId
*
wr_id
);
ActorMsgMR
*
GetOneSendMsgMRFromBuf
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment