Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yaxt
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
dkrz-sw
yaxt
Commits
88766d3f
Commit
88766d3f
authored
5 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Change sub-array offsets to save data move.
parent
039d5dbf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xt_xmap_intersection_ext.c
+4
-8
4 additions, 8 deletions
src/xt_xmap_intersection_ext.c
with
4 additions
and
8 deletions
src/xt_xmap_intersection_ext.c
+
4
−
8
View file @
88766d3f
...
...
@@ -988,9 +988,9 @@ static struct Xt_pos_ext * exchange_transfer_pos_ext(
MPI_Request
*
requests
=
xmalloc
((
size_t
)(
n_in
+
2
*
n_out
)
*
sizeof
(
*
requests
));
MPI_Request
*
restrict
recv
_requests
=
requests
,
*
restrict
send_header
_requests
=
requests
+
n_
in
,
*
restrict
send_data_requests
=
send_header
_requests
+
n_
out
;
MPI_Request
*
restrict
send_header
_requests
=
requests
,
*
restrict
recv
_requests
=
requests
+
n_
out
,
*
restrict
send_data_requests
=
recv
_requests
+
n_
in
;
// set up receives for number of transfer_pos_ext per remote
// for (int i = 0; i < n_in; ++i)
...
...
@@ -1025,7 +1025,7 @@ static struct Xt_pos_ext * exchange_transfer_pos_ext(
// wait for the receiving of headers to complete
xt_mpi_call
(
MPI_Waitall
(
n_out
+
n_in
,
recv
_requests
,
MPI_STATUSES_IGNORE
),
comm
);
MPI_Waitall
(
n_out
+
n_in
,
send_header
_requests
,
MPI_STATUSES_IGNORE
),
comm
);
size_t
total_num_pos_ext_to_recv
=
0
;
...
...
@@ -1060,10 +1060,6 @@ static struct Xt_pos_ext * exchange_transfer_pos_ext(
}
else
transfer_pos_ext_buffer
=
NULL
;
// move data request handles for compact wait
memcpy
(
send_header_requests
,
send_data_requests
,
(
size_t
)
n_out
*
sizeof
(
send_header_requests
[
0
]));
// wait until all communication is completed
xt_mpi_call
(
MPI_Waitall
(
n_in
+
n_out
,
recv_requests
,
MPI_STATUSES_IGNORE
),
comm
);
...
...
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