Skip to content

Commit 4110e99

Browse files
committed
more minor cleanup
Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent 505b211 commit 4110e99

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

ompi/mpi/bindings/ompi_bindings/c_type.py

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,6 @@ class TypeStatusStandard(StandardABIType):
12831283

12841284
@property
12851285
def init_code(self):
1286-
# TODO: Need to ensure this is the correct conversion function for MPI_Status
12871286
mangle_type = self.mangle_name('MPI_Status')
12881287
code = [f'MPI_Status {self.tmpname};'];
12891288
code.append(f'{ConvertFuncs.STATUS}(&{self.tmpname}, ({mangle_type} *){self.name});')
@@ -1457,7 +1456,6 @@ def type_text(self, enable_count=False):
14571456
return 'MPI_F08_status *'
14581457

14591458

1460-
# TODO: For now this just assumes that MPI_Fint doesn't need any conversions
14611459
@Type.add_type('FINT')
14621460
class TypeFint(Type):
14631461

@@ -1840,8 +1838,6 @@ def type_text(self, enable_count=False):
18401838

18411839
@Type.add_type('COPY_FUNCTION', abi_type=['standard'])
18421840
class TypeCopyFunctionStandard(StandardABIType):
1843-
# TODO: This may require a special function to wrap the callback
1844-
# pass
18451841

18461842
def type_text(self, enable_count=False):
18471843
return 'MPI_Copy_function *'
@@ -1855,8 +1851,7 @@ def type_text(self, enable_count=False):
18551851

18561852
@Type.add_type('DELETE_FUNCTION', abi_type=['standard'])
18571853
class TypeDeleteFunctionStandard(StandardABIType):
1858-
# TODO: This may require a special function to wrap the callback
1859-
# pass
1854+
18601855
def type_text(self, enable_count=False):
18611856
return 'MPI_Delete_function *'
18621857

@@ -1874,8 +1869,6 @@ def type_text(self, enable_count=False):
18741869

18751870
@Type.add_type('USER_FUNCTION', abi_type=['standard'])
18761871
class TypeUserFunctionStandard(Type):
1877-
# TODO: This may require a special function to wrap the callback
1878-
# pass
18791872

18801873
def type_text(self, enable_count=False):
18811874
return 'MPI_User_function_c *' if enable_count else 'MPI_User_function *'
@@ -1987,8 +1980,6 @@ def type_text(self, enable_count=False):
19871980

19881981
@Type.add_type('GREQUEST_QUERY_FUNCTION', abi_type=['standard'])
19891982
class TypeGrequestQueryFunctionStandard(Type):
1990-
# TODO: This may require a special function to wrap the callback
1991-
# pass
19921983

19931984
def type_text(self, enable_count=False):
19941985
return 'MPI_Grequest_query_function *'
@@ -2002,8 +1993,6 @@ def type_text(self, enable_count=False):
20021993

20031994
@Type.add_type('GREQUEST_FREE_FUNCTION', abi_type=['standard'])
20041995
class TypeGrequestFreeFunctionStandard(Type):
2005-
# TODO: This may require a special function to wrap the callback
2006-
# pass
20071996

20081997
def type_text(self, enable_count=False):
20091998
return 'MPI_Grequest_free_function *'
@@ -2017,8 +2006,6 @@ def type_text(self, enable_count=False):
20172006

20182007
@Type.add_type('GREQUEST_CANCEL_FUNCTION', abi_type=['standard'])
20192008
class TypeGrequestCancelFunctionStandard(Type):
2020-
# TODO: This may require a special function to wrap the callback
2021-
# pass
20222009

20232010
def type_text(self, enable_count=False):
20242011
return 'MPI_Grequest_cancel_function *'
@@ -2035,8 +2022,6 @@ def type_text(self, enable_count=False):
20352022

20362023
@Type.add_type('DATAREP_CONVERSION_FUNCTION', abi_type=['standard'])
20372024
class TypeDatarepConversionFunctionStandard(Type):
2038-
# TODO: This may require a special function to wrap the callback
2039-
# pass
20402025

20412026
@property
20422027
def is_count(self):
@@ -2054,8 +2039,6 @@ def type_text(self, enable_count=False):
20542039

20552040
@Type.add_type('DATAREP_EXTENT_FUNCTION', abi_type=['standard'])
20562041
class TypeDatarepExtentFunctionStandard(Type):
2057-
# TODO: This may require a special function to wrap the callback
2058-
# pass
20592042

20602043
def type_text(self, enable_count=False):
20612044
return 'MPI_Datarep_extent_function *'
@@ -3118,7 +3101,7 @@ def parameter(self, enable_count=False, **kwargs):
31183101
# better as arg to the converter code.
31193102
#
31203103
@Type.add_type('WEIGHTS', abi_type=['standard'])
3121-
class TyperWeightStandard(StandardABIType):
3104+
class TypeWeightStandard(StandardABIType):
31223105

31233106
@property
31243107
def init_code(self):
@@ -3141,7 +3124,7 @@ def type_text(self, enable_count=False):
31413124
return 'int *'
31423125

31433126
@Type.add_type('COMM_CMP_OUT', abi_type=['standard'])
3144-
class TyperCommCmpOutStandard(StandardABIType):
3127+
class TypeCommCmpOutStandard(StandardABIType):
31453128

31463129
@property
31473130
def final_code(self):

ompi/mpi/c/abi.h.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ extern "C" {
1616
#define MPI_ABI_VERSION 1
1717
#define MPI_ABI_SUBVERSION 0
1818

19-
/* TODO: add comment why this is hardcoded to avoid extra generation logic */
2019
typedef struct MPI_ABI_Comm * MPI_Comm;
2120
typedef struct MPI_ABI_Datatype * MPI_Datatype;
2221
typedef struct MPI_ABI_Errhandler * MPI_Errhandler;

ompi/mpi/c/comm_get_attr.c.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ PROTOTYPE ERROR_CLASS comm_get_attr(COMM comm, ATTR_KEY comm_keyval,
7171
} else if (MPI_IO == comm_keyval) {
7272
*(int **)attribute_val = &ompi_abi_mpi_any_source_val;
7373
} else if (MPI_LASTUSEDCODE == comm_keyval) {
74-
/*
75-
* TODO: is this locking good enough?
76-
*/
7774
OPAL_THREAD_LOCK(&comm->c_lock);
7875
ompi_abi_mpi_lastusedcode = ompi_convert_intern_error_abi_error(*(int *)*(void**)attribute_val);
7976
OPAL_THREAD_UNLOCK(&comm->c_lock);

0 commit comments

Comments
 (0)