Skip to content

Commit d9884bb

Browse files
committed
ompi-abiinfo.patch from dalcinl
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 959df10 commit d9884bb

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

ompi/mpi/c/abi_get_info.c.in

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@
2020

2121
PROTOTYPE ERROR_CLASS abi_get_info(INFO_OUT info)
2222
{
23-
int ret = OMPI_SUCCESS;
24-
25-
#if OMPI_ABI_SRC
23+
int ret = OPAL_SUCCESS;
2624
ompi_info_t *newinfo = NULL;
2725
char tmp[16];
26+
2827
newinfo = ompi_info_allocate();
2928
if (NULL == newinfo) {
3029
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(MPI_ERR_NO_MEM,
3130
"MPI_Info_dup");
3231
}
3332

34-
/* TODO: need to set aint_size, count_size, offset_size */
35-
3633
snprintf(tmp, 16, "%" PRIsize_t, sizeof(MPI_Aint));
3734
ret = opal_info_set(&newinfo->super, "mpi_aint_size", tmp);
3835
if (OPAL_SUCCESS != ret) {
@@ -50,12 +47,11 @@ PROTOTYPE ERROR_CLASS abi_get_info(INFO_OUT info)
5047
}
5148

5249
*info = newinfo;
50+
51+
exit:
52+
OMPI_ERRHANDLER_NOHANDLE_RETURN( ret, ret, FUNC_NAME );
53+
5354
err_cleanup:
5455
ompi_info_free(&newinfo);
55-
return ret;
56-
57-
#else
58-
*info = MPI_INFO_NULL;
59-
#endif
60-
return ret;
56+
goto exit;
6157
}

0 commit comments

Comments
 (0)