Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ompi/mpi/c/info_delete.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* reserved.
* Copyright (c) 2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2017 Cisco Systems, Inc. All rights reserved
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -78,5 +79,14 @@ int MPI_Info_delete(MPI_Info info, const char *key) {
OPAL_CR_ENTER_LIBRARY();

err = ompi_info_delete (info, key);

// Note that ompi_info_delete() (i.e., opal_info_delete()) will
// return OPAL_ERR_NOT_FOUND if there was no corresponding key to
// delete. Per MPI-3.1, we need to convert that to
// MPI_ERR_INFO_NOKEY.
if (OPAL_ERR_NOT_FOUND == err) {
err = MPI_ERR_INFO_NOKEY;
}

OMPI_ERRHANDLER_RETURN(err, MPI_COMM_WORLD, err, FUNC_NAME);
}