@@ -51,7 +51,7 @@ static UCS_F_ALWAYS_INLINE ucs_status_t ucg_builtin_step_am_short_one(ucg_builti
51
51
ucs_debug ("am_short_one step %u length %zu" , step -> am_header .step_idx , step -> buffer_length );
52
52
53
53
int8_t * send_buffer = step -> send_buffer ;
54
- void * dt_state = step -> non_contig .pack_state . dt . generic . state ;
54
+ void * dt_state = step -> non_contig .pack_state ;
55
55
if (dt_state != NULL ) {
56
56
req -> op -> send_dt -> ops .pack (dt_state , 0 , step -> non_contig .contig_buffer , step -> buffer_length );
57
57
send_buffer = step -> non_contig .contig_buffer ;
@@ -68,7 +68,7 @@ static UCS_F_ALWAYS_INLINE ucs_status_t ucg_builtin_step_am_short_max(ucg_builti
68
68
unsigned am_id = step -> am_id ;
69
69
ucg_offset_t frag_size = step -> fragment_length ;
70
70
int8_t * send_buffer = step -> send_buffer ;
71
- void * dt_state = step -> non_contig .pack_state . dt . generic . state ;
71
+ void * dt_state = step -> non_contig .pack_state ;
72
72
73
73
if (dt_state != NULL ) {
74
74
req -> op -> send_dt -> ops .pack (dt_state , 0 , step -> non_contig .contig_buffer , step -> buffer_length );
@@ -123,7 +123,7 @@ static size_t ucg_builtin_step_am_bcopy_single_frag_packer(void *dest, void *arg
123
123
ucg_builtin_request_t * req = (ucg_builtin_request_t * )arg ;
124
124
ucg_builtin_op_step_t * step = req -> step ;
125
125
ucg_builtin_header_t * header_ptr = (ucg_builtin_header_t * )dest ;
126
- void * dt_state = step -> non_contig .pack_state . dt . generic . state ;
126
+ void * dt_state = step -> non_contig .pack_state ;
127
127
header_ptr -> header = step -> am_header .header ;
128
128
129
129
if (dt_state != NULL ) {
@@ -139,7 +139,7 @@ static size_t ucg_builtin_step_am_bcopy_full_frag_packer(void *dest, void *arg)
139
139
ucg_builtin_request_t * req = (ucg_builtin_request_t * )arg ;
140
140
ucg_builtin_op_step_t * step = req -> step ;
141
141
ucg_builtin_header_t * header_ptr = (ucg_builtin_header_t * )dest ;
142
- void * dt_state = step -> non_contig .pack_state . dt . generic . state ;
142
+ void * dt_state = step -> non_contig .pack_state ;
143
143
header_ptr -> header = step -> am_header .header ;
144
144
145
145
if (dt_state != NULL ) {
@@ -156,7 +156,7 @@ static size_t ucg_builtin_step_am_bcopy_partial_frag_packer(void *dest, void *ar
156
156
ucg_builtin_op_step_t * step = req -> step ;
157
157
ucg_offset_t last_frag_length = step -> buffer_length - step -> iter_offset ;
158
158
ucg_builtin_header_t * header_ptr = (ucg_builtin_header_t * )dest ;
159
- void * dt_state = step -> non_contig .pack_state . dt . generic . state ;
159
+ void * dt_state = step -> non_contig .pack_state ;
160
160
header_ptr -> header = step -> am_header .header ;
161
161
162
162
if (dt_state != NULL ) {
@@ -237,7 +237,7 @@ static UCS_F_ALWAYS_INLINE ucs_status_t ucg_builtin_step_am_zcopy_one(ucg_builti
237
237
uct_ep_h ep , int is_single_send )
238
238
{
239
239
int8_t * send_buffer = step -> send_buffer ;
240
- void * dt_state = step -> non_contig .pack_state . dt . generic . state ;
240
+ void * dt_state = step -> non_contig .pack_state ;
241
241
242
242
if (dt_state != NULL ) {
243
243
req -> op -> send_dt -> ops .pack (dt_state , 0 , step -> non_contig .contig_buffer , step -> buffer_length );
@@ -272,7 +272,7 @@ static UCS_F_ALWAYS_INLINE ucs_status_t ucg_builtin_step_am_zcopy_max(ucg_builti
272
272
step -> am_header .remote_offset = (is_single_send ) ? step -> iter_offset :
273
273
step -> am_header .remote_offset ;
274
274
int8_t * send_buffer = step -> send_buffer ;
275
- void * dt_state = step -> non_contig .pack_state . dt . generic . state ;
275
+ void * dt_state = step -> non_contig .pack_state ;
276
276
if (dt_state != NULL ) {
277
277
req -> op -> send_dt -> ops .pack (dt_state , 0 , step -> non_contig .contig_buffer , step -> buffer_length );
278
278
send_buffer = step -> non_contig .contig_buffer ;
@@ -1069,9 +1069,9 @@ ucs_status_t ucg_builtin_step_create(ucg_builtin_plan_phase_t *phase,
1069
1069
step -> send_cb = NULL ;
1070
1070
1071
1071
step -> non_contig .contig_buffer = NULL ;
1072
- step -> non_contig .pack_state . dt . generic . state = NULL ;
1073
- step -> non_contig .unpack_state . dt . generic . state = NULL ;
1074
- step -> non_contig .pack_state_recv . dt . generic . state = NULL ;
1072
+ step -> non_contig .pack_state = NULL ;
1073
+ step -> non_contig .unpack_state = NULL ;
1074
+ step -> non_contig .pack_state_recv = NULL ;
1075
1075
1076
1076
/* special parameter of buffer length should be set for allgather with bruck plan */
1077
1077
if (phase -> method == UCG_PLAN_METHOD_ALLGATHER_BRUCK ) {
@@ -1341,8 +1341,8 @@ void ucg_builtin_swap_net_recv(char *netdata, size_t length, size_t offset,
1341
1341
{
1342
1342
ucg_builtin_op_step_t * step = req -> step ;
1343
1343
ucp_dt_generic_t * gen_dt = req -> op -> recv_dt ;
1344
- void * state_pack = step -> non_contig .pack_state_recv . dt . generic . state ;
1345
- void * state_unpack = step -> non_contig .unpack_state . dt . generic . state ;
1344
+ void * state_pack = step -> non_contig .pack_state_recv ;
1345
+ void * state_unpack = step -> non_contig .unpack_state ;
1346
1346
char * recv_buffer = (char * )step -> recv_buffer ;
1347
1347
char * tmp_buffer = NULL ;
1348
1348
0 commit comments