Skip to content
Snippets Groups Projects
Commit addc5ec7 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

exchangers: Retain configuration flags.

parent df10199b
No related branches found
No related tags found
1 merge request!31Draft: Attempt at fuller exchanger interface
......@@ -168,6 +168,7 @@ xt_exchanger_simple_base_init(
exchanger->tag_offset = tag_offset;
exchanger->nmsg[SEND] = nsend;
exchanger->nmsg[RECV] = nrecv;
exchanger->config_flags = config->flags;
bool dt_dup = !(config->flags & exch_no_dt_dup);
xt_msg_params_copy((size_t)nsend, send_msgs,
xt_exchanger_simple_base_get_send_msg(exchanger),
......@@ -215,6 +216,7 @@ xt_exchanger_simple_base_copy(Xt_exchanger exchanger,
exchanger_copy->vtable = exchanger_sb->vtable;
exchanger_copy->nmsg[SEND] = nsend;
exchanger_copy->nmsg[RECV] = nrecv;
exchanger_copy->config_flags = exchanger_sb->config_flags;
struct Xt_msg_param *restrict new_msgs = exchanger_copy->msgs,
*restrict orig_msgs = exchanger_sb->msgs;
xt_msg_params_copy(nmsg, orig_msgs, new_msgs, new_comm, true);
......
......@@ -82,6 +82,7 @@ struct Xt_exchanger_simple_base_ {
const struct xt_exchanger_vtable *vtable;
int nmsg[2];
int tag_offset;
uint32_t config_flags;
MPI_Comm comm;
struct Xt_msg_param msgs[];
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment