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
adb2dca0
Commit
adb2dca0
authored
2 months ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
exchangers: Unifiy place to set send mode.
parent
d1d5817b
No related branches found
Branches containing commit
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_mix_isend_irecv.c
+3
-4
3 additions, 4 deletions
src/xt_exchanger_mix_isend_irecv.c
with
3 additions
and
4 deletions
src/xt_exchanger_mix_isend_irecv.c
+
3
−
4
View file @
adb2dca0
...
...
@@ -169,7 +169,6 @@ static Xt_exchanger_mix_isend_irecv
xt_exchanger_mix_isend_irecv_alloc
(
size_t
nmsg
,
Xt_config
config
)
{
(
void
)
config
;
Xt_exchanger_mix_isend_irecv
exchanger
;
size_t
header_size
=
sizeof
(
*
exchanger
),
body_size
=
sizeof
(
struct
Xt_msg_param
)
*
nmsg
;
...
...
@@ -230,7 +229,6 @@ xt_exchanger_mix_isend_irecv_new(int nsend, int nrecv,
=
xt_exchanger_mix_isend_irecv_alloc
(
nmsg
,
config
);
exchanger
->
comm
=
comm
;
exchanger
->
tag_offset
=
tag_offset
;
exchanger
->
send_mode
=
XT_CONFIG_GET_EXCH_SEND_COMM_MODE
(
config
);
struct
Xt_msg_param
*
restrict
msgs
=
exchanger
->
msgs
;
bool
dt_dup
=
!
(
config
->
flags
&
exch_no_dt_dup
);
xt_msg_params_copy
((
size_t
)
nsend
,
send_msgs
,
msgs
,
comm
,
dt_dup
);
...
...
@@ -270,12 +268,13 @@ xt_exchanger_mix_isend_irecv_copy(Xt_exchanger exchanger,
Xt_exchanger_mix_isend_irecv
exchanger_msr
=
(
Xt_exchanger_mix_isend_irecv
)
exchanger
;
size_t
nmsg
=
(
size_t
)
exchanger_msr
->
n
;
struct
Xt_config_
config
=
xt_default_config
;
XT_CONFIG_SET_EXCH_SEND_COMM_MODE
(
&
config
,
exchanger_msr
->
send_mode
);
/* fixme: needs to use custom config */
Xt_exchanger_mix_isend_irecv
exchanger_copy
=
xt_exchanger_mix_isend_irecv_alloc
(
nmsg
,
&
xt_default_
config
);
=
xt_exchanger_mix_isend_irecv_alloc
(
nmsg
,
&
config
);
exchanger_copy
->
comm
=
new_comm
;
exchanger_copy
->
tag_offset
=
new_tag_offset
;
exchanger_copy
->
send_mode
=
exchanger_msr
->
send_mode
;
exchanger_copy
->
vtable
=
exchanger_msr
->
vtable
;
xt_msg_params_copy
(
nmsg
,
exchanger_msr
->
msgs
,
exchanger_copy
->
msgs
,
new_comm
,
true
);
...
...
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