Skip to content

Commit

Permalink
Merge pull request #5749 from hzhou/2201_statuses
Browse files Browse the repository at this point in the history
mpi: use pointers for array_of_statuses

Approved-by: Ken Raffenetti
  • Loading branch information
hzhou authored Jan 7, 2022
2 parents 791b36a + 55d12cf commit 5ee3ea3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions maint/local_python/binding_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ def get_C_param(param, func, mapping):
else:
# MPI_Init, MPI_Init_thread -> char ***argv
want_star = 3
elif kind == "STATUS" and param['length'] is not None:
# MPI_{Wait,Test}{all,some}
# gcc-11 warns when we pass MPI_STATUSES_IGNORE to MPI_Status statues[]
want_star = 1
elif not want_star:
if is_pointer_type(param):
if kind == "STRING_ARRAY":
Expand Down

0 comments on commit 5ee3ea3

Please sign in to comment.