File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 2020
2121PROTOTYPE 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+
5354err_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}
You can’t perform that action at this time.
0 commit comments