14
14
* reserved.
15
15
* Copyright (c) 2014-2017 Research Organization for Information Science
16
16
* and Technology (RIST). All rights reserved.
17
- * Copyright (c) 2017 IBM Corporation. All rights reserved.
17
+ * Copyright (c) 2017-2022 IBM Corporation. All rights reserved.
18
18
* Copyright (c) 2021 Amazon.com, Inc. or its affiliates. All Rights
19
19
* reserved.
20
20
* $COPYRIGHT$
@@ -104,19 +104,19 @@ mca_coll_base_alltoall_intra_basic_inplace(const void *rbuf, int rcount,
104
104
ompi_proc_t * right_proc = ompi_comm_peer_lookup (comm , right );
105
105
opal_convertor_clone (right_proc -> super .proc_convertor , & convertor , 0 );
106
106
opal_convertor_prepare_for_send (& convertor , & rdtype -> super , rcount ,
107
- (char * ) rbuf + right * rcount * extent );
107
+ (char * ) rbuf + ( MPI_Aint ) right * rcount * extent );
108
108
packed_size = max_size ;
109
109
err = opal_convertor_pack (& convertor , & iov , & iov_count , & packed_size );
110
110
if (1 != err ) { goto error_hndl ; }
111
111
112
112
/* Receive data from the right */
113
- err = MCA_PML_CALL (irecv ((char * ) rbuf + right * rcount * extent , rcount , rdtype ,
113
+ err = MCA_PML_CALL (irecv ((char * ) rbuf + ( MPI_Aint ) right * rcount * extent , rcount , rdtype ,
114
114
right , MCA_COLL_BASE_TAG_ALLTOALL , comm , & req ));
115
115
if (MPI_SUCCESS != err ) { goto error_hndl ; }
116
116
117
117
if ( left != right ) {
118
118
/* Send data to the left */
119
- err = MCA_PML_CALL (send ((char * ) rbuf + left * rcount * extent , rcount , rdtype ,
119
+ err = MCA_PML_CALL (send ((char * ) rbuf + ( MPI_Aint ) left * rcount * extent , rcount , rdtype ,
120
120
left , MCA_COLL_BASE_TAG_ALLTOALL , MCA_PML_BASE_SEND_STANDARD ,
121
121
comm ));
122
122
if (MPI_SUCCESS != err ) { goto error_hndl ; }
@@ -125,7 +125,7 @@ mca_coll_base_alltoall_intra_basic_inplace(const void *rbuf, int rcount,
125
125
if (MPI_SUCCESS != err ) { goto error_hndl ; }
126
126
127
127
/* Receive data from the left */
128
- err = MCA_PML_CALL (irecv ((char * ) rbuf + left * rcount * extent , rcount , rdtype ,
128
+ err = MCA_PML_CALL (irecv ((char * ) rbuf + ( MPI_Aint ) left * rcount * extent , rcount , rdtype ,
129
129
left , MCA_COLL_BASE_TAG_ALLTOALL , comm , & req ));
130
130
if (MPI_SUCCESS != err ) { goto error_hndl ; }
131
131
}
0 commit comments