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
4dc9be71
Commit
4dc9be71
authored
2 months ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
exchangers: Add buffered and synchronous mode to ddt packed exchanger.
parent
71c4f0b2
No related branches found
No related tags found
1 merge request
!31
Draft: Attempt at fuller exchanger interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xt_exchanger_irecv_isend_ddt_packed.c
+15
-5
15 additions, 5 deletions
src/xt_exchanger_irecv_isend_ddt_packed.c
with
15 additions
and
5 deletions
src/xt_exchanger_irecv_isend_ddt_packed.c
+
15
−
5
View file @
4dc9be71
...
...
@@ -157,6 +157,11 @@ xt_exchanger_irecv_isend_ddt_packed_s_exchange(
ofs
+=
(
size_t
)
recv_size
;
}
typedef
int
(
*
ifp
)(
const
void
*
buf
,
int
count
,
MPI_Datatype
datatype
,
int
dest
,
int
tag
,
MPI_Comm
comm
,
MPI_Request
*
request
);
int
send_mode
=
XT_CONFIG_FLAGS_GET_EXCH_SEND_COMM_MODE
(
base
->
config_flags
);
ifp
a_send
=
(
ifp
)
xt_send_func_tab
[
0
][
send_mode
];
ofs
=
0
;
for
(
int
i
=
0
;
i
<
nsend
;
++
i
)
{
size_t
send_size
=
buffer_sizes
[
nrecv
+
i
];
...
...
@@ -165,10 +170,10 @@ xt_exchanger_irecv_isend_ddt_packed_s_exchange(
xt_ddt_pack_internal
(
CAST_MPI_SEND_BUF
(
src_data
),
(
size_t
)
send_msgs
[
i
].
count
,
ddts
[
nrecv
+
i
],
send_buffer
+
ofs
,
extent
,
src_data_memtype
);
xt_mpi_call
(
MPI_I
send
(
send_buffer
+
ofs
,
(
int
)
send_size
,
MPI_BYTE
,
send_msgs
[
i
].
rank
,
base
->
tag_offset
+
xt_mpi_tag_exchange_msg
,
base
->
comm
,
requests
+
nrecv
+
i
),
base
->
comm
);
xt_mpi_call
(
a_
send
(
send_buffer
+
ofs
,
(
int
)
send_size
,
MPI_BYTE
,
send_msgs
[
i
].
rank
,
base
->
tag_offset
+
xt_mpi_tag_exchange_msg
,
base
->
comm
,
requests
+
nrecv
+
i
),
base
->
comm
);
ofs
+=
send_size
;
}
...
...
@@ -235,6 +240,11 @@ xt_exchanger_irecv_isend_ddt_packed_a_exchange(
tmp_requests
+
i
),
base
->
comm
);
}
typedef
int
(
*
ifp
)(
const
void
*
buf
,
int
count
,
MPI_Datatype
datatype
,
int
dest
,
int
tag
,
MPI_Comm
comm
,
MPI_Request
*
request
);
int
send_mode
=
XT_CONFIG_FLAGS_GET_EXCH_SEND_COMM_MODE
(
base
->
config_flags
);
ifp
a_send
=
(
ifp
)
xt_send_func_tab
[
0
][
send_mode
];
const
struct
Xt_msg_param
*
send_msgs
=
xt_exchanger_simple_base_get_send_msg
(
base
);
for
(
int
i
=
0
;
i
<
nsend
;
++
i
)
{
...
...
@@ -249,7 +259,7 @@ xt_exchanger_irecv_isend_ddt_packed_a_exchange(
xt_ddt_pack_internal
(
src_data
,
(
size_t
)
send_msgs
[
i
].
count
,
send_ddt
,
buffers
[
nrecv
+
i
],
extent
,
src_data_memtype
);
xt_mpi_call
(
MPI_I
send
(
xt_mpi_call
(
a_
send
(
buffers
[
nrecv
+
i
],
(
int
)
buffer_size
,
MPI_BYTE
,
send_msgs
[
i
].
rank
,
base
->
tag_offset
+
xt_mpi_tag_exchange_msg
,
base
->
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