Commit 22c16664 authored by Xin Zhao's avatar Xin Zhao Committed by Pavan Balaji
Browse files

Bug-fix: datatype in FOP should be predefined instead of builtin



Originally MPICH check datatype of FOP by judging if it is a
BUILTIN type, this prohibits all pair types. This patch fix this
issue.
Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent a59e6117
......@@ -125,7 +125,7 @@ int MPI_Fetch_and_op(const void *origin_addr, void *result_addr,
MPIR_ERRTEST_ARGNULL(result_addr, "result_addr", mpi_errno);
MPIR_ERRTEST_DATATYPE(datatype, "datatype", mpi_errno);
if (HANDLE_GET_KIND(datatype) != HANDLE_KIND_BUILTIN)
if (!MPIR_DATATYPE_IS_PREDEFINED(datatype))
{
MPIU_ERR_SETANDJUMP(mpi_errno, MPI_ERR_TYPE, "**typenotpredefined");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment