Skip to content

Commit 84bd80b

Browse files
committed
fix a few problems with datatype bindings
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 5075d5a commit 84bd80b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

ompi/mpi/bindings/ompi_bindings/c_type.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ def type_text(self, enable_count=False):
15871587

15881588
@Type.add_type('DATAREP_CONVERSION_FUNCTION', abi_type=['standard'])
15891589
class TypeDatarepConversionFunctionStandard(Type):
1590-
# TODO: This may require a special function to wrap the callback
1590+
# TODO: This may require a special function to wrap the callback
15911591
# pass
15921592

15931593
@property
@@ -1640,15 +1640,15 @@ def type_text(self, enable_count=False):
16401640
type_name = self.mangle_name('MPI_Type_copy_attr_function')
16411641
return f'{type_name} *'
16421642

1643-
@property
1644-
def argument(self):
1645-
return f'(MPI_Type_copy_attr_function *) {self.name}'
1643+
# @property
1644+
# def argument(self):
1645+
# return f'(MPI_Type_copy_attr_function *) {self.name}'
16461646

16471647
@property
16481648
def init_code(self):
16491649
code = []
16501650
code = [f'MPI_Type_copy_attr_function *{self.tmpname} = {ConvertFuncs.TYPE_COPY_ATTR_FUNCTION}({self.name});']
1651-
code = ['ompi_abi_wrapper_helper_t *helper = NULL;']
1651+
code.append('ompi_abi_wrapper_helper_t *helper = NULL;')
16521652
code.append('MPI_Type_copy_attr_function_ABI_INTERNAL *copy_fn;')
16531653
code.append('helper = ( ompi_abi_wrapper_helper_t *)malloc(sizeof(ompi_abi_wrapper_helper_t));')
16541654
code.append('if (NULL == helper) return MPI_ERR_NO_MEM;')

ompi/mpi/bindings/ompi_bindings/consts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
]
100100

101101
PREDEFINED_DATATYPES = [
102+
'MPI_DATATYPE_NULL',
102103
'MPI_CHAR',
103104
'MPI_SHORT',
104105
'MPI_INT',

0 commit comments

Comments
 (0)