File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1414 * reserved.
1515 * Copyright (c) 2015 Research Organization for Information Science
1616 * and Technology (RIST). All rights reserved.
17+ * Copyright (c) 2017 Cisco Systems, Inc. All rights reserved
1718 * $COPYRIGHT$
1819 *
1920 * Additional copyrights may follow
@@ -78,5 +79,14 @@ int MPI_Info_delete(MPI_Info info, const char *key) {
7879 OPAL_CR_ENTER_LIBRARY ();
7980
8081 err = ompi_info_delete (info , key );
82+
83+ // Note that ompi_info_delete() (i.e., opal_info_delete()) will
84+ // return OPAL_ERR_NOT_FOUND if there was no corresponding key to
85+ // delete. Per MPI-3.1, we need to convert that to
86+ // MPI_ERR_INFO_NOKEY.
87+ if (OPAL_ERR_NOT_FOUND == err ) {
88+ err = MPI_ERR_INFO_NOKEY ;
89+ }
90+
8191 OMPI_ERRHANDLER_RETURN (err , MPI_COMM_WORLD , err , FUNC_NAME );
8292}
You can’t perform that action at this time.
0 commit comments