Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
46dc28e7
Commit
46dc28e7
authored
Nov 19, 2013
by
Thomas Jahns
🤸
Browse files
Use pack function argument to copy data entries to RDMA window.
parent
b26e89c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pio_interface.c
View file @
46dc28e7
...
...
@@ -496,8 +496,10 @@ modelWinEnqueue(int collID,
int
offset
=
header
.
offset
=
(
int
)
roundUpToMultiple
(
txWin
[
collID
].
head
-
txWin
[
collID
].
buffer
,
sizeof
(
double
));
memcpy
(
txWin
[
collID
].
buffer
+
offset
,
data
,
size
);
txWin
[
collID
].
head
=
txWin
[
collID
].
buffer
+
offset
+
size
;
MPI_Comm
comm
=
commInqCommsIO
(
collID
);
packFunc
((
void
*
)
data
,
txWin
[
collID
].
buffer
,
(
int
)
txWin
[
collID
].
size
,
&
offset
,
&
comm
);
txWin
[
collID
].
head
=
txWin
[
collID
].
buffer
+
offset
;
}
else
if
(
header
.
id
==
PARTDESCMARKER
)
{
...
...
@@ -579,8 +581,9 @@ pioBufferPartData(int streamID, int varID, const double *data,
struct
winHeaderEntry
dataHeader
=
{
.
id
=
streamID
,
.
specific
.
dataRecord
=
{
varID
,
nmiss
},
.
offset
=
-
1
};
modelWinEnqueue
(
collID
,
dataHeader
,
data
,
chunk
*
sizeof
(
data
[
0
]),
memcpyPackFunc
);
modelWinEnqueue
(
collID
,
dataHeader
,
&
(
struct
memCpyDataDesc
){
data
,
chunk
*
sizeof
(
data
[
0
])},
0
,
memcpyPackFunc
);
{
struct
winHeaderEntry
partHeader
=
{
.
id
=
PARTDESCMARKER
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment