Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
279da860
Commit
279da860
authored
Jul 25, 2012
by
Thomas Jahns
🤸
Browse files
Replace computation in memcpy call with stored reference.
parent
7cb00f17
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pio_posixasynch.c
View file @
279da860
...
...
@@ -314,8 +314,9 @@ void pioWriterAIO(void)
bfd
->
currOpIndex
=
bfd
->
nextOpIndex
;
bfd
->
nextOpIndex
=
(
bfd
->
nextOpIndex
+
1
)
%
nPrefStreams
;
memcpy
(
bfd
->
fb
->
buffer
+
(
bfd
->
currOpIndex
*
bfd
->
size
),
pMB
,
(
int
)
amount
);
xassert
(
amount
>=
0
);
memcpy
((
void
*
)
bfd
->
ctrlBlks
[
bfd
->
currOpIndex
].
aio_buf
,
pMB
,
(
size_t
)
amount
);
writePA
(
bfd
,
amount
);
...
...
@@ -359,8 +360,8 @@ void pioWriterAIO(void)
bfd
->
nextOpIndex
=
(
bfd
->
nextOpIndex
+
1
)
%
nPrefStreams
;
MPI_Recv
(
bfd
->
fb
->
buffer
+
(
bfd
->
currOpIndex
*
bfd
->
size
),
amount
,
MPI_CHAR
,
source
,
tag
,
commNode
,
&
status
);
MPI_Recv
((
void
*
)
bfd
->
ctrlBlks
[
bfd
->
currOpIndex
].
aio_buf
,
amount
,
MPI_CHAR
,
source
,
tag
,
commNode
,
&
status
);
writePA
(
bfd
,
amount
);
...
...
Write
Preview
Markdown
is supported
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