Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
swiftmpistepsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
swiftmpistepsim
Commits
1c2f92dd
Commit
1c2f92dd
authored
5 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Tidy up
parent
f3f691d8
No related branches found
No related tags found
1 merge request
!8
Draft: RDMA version with wrapped infinity calls
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swiftmpirdmastepsim.c
+11
-11
11 additions, 11 deletions
swiftmpirdmastepsim.c
with
11 additions
and
11 deletions
swiftmpirdmastepsim.c
+
11
−
11
View file @
1c2f92dd
...
...
@@ -252,22 +252,23 @@ static void *recv_thread(void *arg) {
auto
*
context
=
new
infinity
::
core
::
Context
();
auto
*
qpFactory
=
new
infinity
::
queues
::
QueuePairFactory
(
context
);
// Create buffer to receive messages. Only size for one, or not...
auto
*
receiveBuffer
=
new
infinity
::
memory
::
Buffer
(
context
,
16
*
tobytes
(
MESSAGE_SIZE
));
// Create buffer to receive messages. This is big enough for the largest
// message.
auto
*
receiveBuffer
=
new
infinity
::
memory
::
Buffer
(
context
,
tobytes
(
MESSAGE_SIZE
));
context
->
postReceiveBuffer
(
receiveBuffer
);
// Port binding.
//message("%d binding to %d on port %d", myrank, rank, BASE_PORT + rank);
fflush
(
stdout
);
if
(
verbose
)
message
(
"%d binding to %d on port %d"
,
myrank
,
rank
,
BASE_PORT
+
rank
);
qpFactory
->
bindToPort
(
BASE_PORT
+
rank
);
//message("Blocking for first message on %d", BASE_PORT + rank);
if
(
verbose
)
message
(
"Blocking for first message on %d"
,
BASE_PORT
+
rank
);
starting
[
rank
]
=
0
;
// really need to do this in acceptIncomingConnection().
auto
qp
=
qpFactory
->
acceptIncomingConnection
();
// We block here for first message.
//message("Accepting incoming connections on %d", BASE_PORT + rank);
auto
qp
=
qpFactory
->
acceptIncomingConnection
();
if
(
verbose
)
message
(
"Accepting incoming connections on %d"
,
BASE_PORT
+
rank
);
/* No. of receives to process and associated queue. */
int
todo_recv
=
nr_recvs
[
rank
];
...
...
@@ -339,7 +340,6 @@ static void *recv_thread(void *arg) {
delete
qp
;
delete
qpFactory
;
/* Thread exits. */
return
NULL
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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