17
17
* Copyright (c) 2015-2017 Research Organization for Information Science
18
18
* and Technology (RIST). All rights reserved.
19
19
* Copyright (c) 2016-2017 IBM Corporation. All rights reserved.
20
- * Copyright (c) 2018-2019 Triad National Security, LLC. All rights
20
+ * Copyright (c) 2018-2025 Triad National Security, LLC. All rights
21
21
* reserved.
22
22
* Copyright (c) 2024 Advanced Micro Devices, Inc. All rights reserved.
23
23
* $COPYRIGHT$
@@ -206,7 +206,7 @@ static int alloc_window(struct ompi_communicator_t *comm, opal_info_t *info, int
206
206
}
207
207
208
208
static int
209
- config_window (void * base , size_t size , int disp_unit ,
209
+ config_window (void * base , size_t size , ptrdiff_t disp_unit ,
210
210
int flavor , int model , ompi_win_t * win )
211
211
{
212
212
int ret ;
@@ -220,9 +220,15 @@ config_window(void *base, size_t size, int disp_unit,
220
220
MPI_WIN_SIZE , size , true);
221
221
if (OMPI_SUCCESS != ret ) return ret ;
222
222
223
+ /*
224
+ * No this isn't really right but the MPI Forum RMA WG was spleeping during
225
+ * Big count proposal reading and didn't put in something for Table 12.1 of the
226
+ * MPI 5.0 standard for embiggened disp_unit, so here we go with int * in accordance
227
+ * with that table.
228
+ */
223
229
ret = ompi_attr_set_int (WIN_ATTR , win ,
224
230
& win -> w_keyhash ,
225
- MPI_WIN_DISP_UNIT , disp_unit ,
231
+ MPI_WIN_DISP_UNIT , ( int ) disp_unit ,
226
232
true);
227
233
if (OMPI_SUCCESS != ret ) return ret ;
228
234
@@ -244,7 +250,7 @@ config_window(void *base, size_t size, int disp_unit,
244
250
245
251
int
246
252
ompi_win_create (void * base , size_t size ,
247
- int disp_unit , ompi_communicator_t * comm ,
253
+ ptrdiff_t disp_unit , ompi_communicator_t * comm ,
248
254
opal_info_t * info ,
249
255
ompi_win_t * * newwin )
250
256
{
@@ -275,7 +281,7 @@ ompi_win_create(void *base, size_t size,
275
281
}
276
282
277
283
int
278
- ompi_win_allocate (size_t size , int disp_unit , opal_info_t * info ,
284
+ ompi_win_allocate (size_t size , ptrdiff_t disp_unit , opal_info_t * info ,
279
285
ompi_communicator_t * comm , void * baseptr , ompi_win_t * * newwin )
280
286
{
281
287
ompi_win_t * win ;
@@ -307,7 +313,7 @@ ompi_win_allocate(size_t size, int disp_unit, opal_info_t *info,
307
313
}
308
314
309
315
int
310
- ompi_win_allocate_shared (size_t size , int disp_unit , opal_info_t * info ,
316
+ ompi_win_allocate_shared (size_t size , ptrdiff_t disp_unit , opal_info_t * info ,
311
317
ompi_communicator_t * comm , void * baseptr , ompi_win_t * * newwin )
312
318
{
313
319
ompi_win_t * win ;
0 commit comments