Skip to content

Commit

Permalink
fix fortran/c bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
JiakunYan committed Nov 18, 2024
1 parent 2371ea8 commit d0fbe1a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion maint/local_python/binding_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def process_func_parameters(func):
if p['length']:
length = p['length']
if length == '*':
if RE.match(r'MPI_(Test|Wait|Request_get_status_|Continue)all', func_name, re.IGNORECASE):
if RE.match(r'MPIX?_(Test|Wait|Request_get_status_|Continue)all', func_name, re.IGNORECASE):
length = "count"
elif RE.match(r'MPI_(Test|Wait|Request_get_status_)some', func_name, re.IGNORECASE):
length = "incount"
Expand Down
2 changes: 1 addition & 1 deletion maint/local_python/binding_f08.py
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ def process_func_parameters(func):
def check_func_directives(func):
if 'dir' in func and func['dir'] == "mpit":
func['_skip_fortran'] = 1
elif RE.match(r'mpix_(grequest_|type_iov|async_)', func['name'], re.IGNORECASE):
elif RE.match(r'mpix_(grequest_|type_iov|async_|continue)', func['name'], re.IGNORECASE):
func['_skip_fortran'] = 1
elif RE.match(r'mpi_attr_', func['name'], re.IGNORECASE):
func['_skip_fortran'] = 1
Expand Down
2 changes: 1 addition & 1 deletion maint/local_python/binding_f77.py
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ def dump_fortran_line(s):
def check_func_directives(func):
if 'dir' in func and func['dir'] == "mpit":
func['_skip_fortran'] = 1
elif RE.match(r'mpix_(grequest_|type_iov|async_)', func['name'], re.IGNORECASE):
elif RE.match(r'mpix_(grequest_|type_iov|async_|continue)', func['name'], re.IGNORECASE):
func['_skip_fortran'] = 1
elif RE.match(r'mpi_\w+_(f|f08|c)2(f|f08|c)$', func['name'], re.IGNORECASE):
# implemented in mpi_f08_types.f90
Expand Down
2 changes: 1 addition & 1 deletion maint/local_python/binding_f90.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def dump_f90_sizeofs():
def check_func_directives(func):
if 'dir' in func and func['dir'] == "mpit":
func['_skip_fortran'] = 1
elif RE.match(r'mpix_(grequest_|type_iov|async_)', func['name'], re.IGNORECASE):
elif RE.match(r'mpix_(grequest_|type_iov|async_|continue)', func['name'], re.IGNORECASE):
func['_skip_fortran'] = 1
elif RE.match(r'mpi_attr_', func['name'], re.IGNORECASE):
func['_skip_fortran'] = 1
Expand Down
2 changes: 1 addition & 1 deletion src/binding/c/continue_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MPIX_Continueall:
cb: FUNCTION, func_type=MPIX_Continue_cb_function, [the continuation callback function]
cb_data: BUFFER, [the argument passed to the callback]
flags: ARRAY_LENGTH, [flags controlling aspects of the continuation]
array_of_statuses: STATUS, direction=inout, length=*, pointer=False, [array of status objects]
array_of_statuses: STATUS, direction=out, length=*, pointer=False, [array of status objects]
cont_request: REQUEST, [the continuation request]
{
mpi_errno = MPIR_Continueall_impl(count, request_ptrs, cb, cb_data, flags, array_of_statuses,
Expand Down

0 comments on commit d0fbe1a

Please sign in to comment.