Skip to content

v4.0.x: apply romio314 patch to romio321 #5493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
7 changes: 6 additions & 1 deletion ompi/mca/io/romio321/romio/mpi-io/mpioimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
#define ROMIO_THREAD_CS_ENTER()
#define ROMIO_THREAD_CS_EXIT()
#define ROMIO_THREAD_CS_YIELD()
#define MPIO_DATATYPE_ISCOMMITTED(dtype_, err_) do {} while (0)
/* The MPI_DATATYPE_ISCOMMITTED macro now always sets err_=0.
This is an optimistic approach for Open MPI, but it is likely other
upper layers already checked the datatype was committed.
Not setting err_ is incorrect since it can lead to use of
uninitialized variable.*/
#define MPIO_DATATYPE_ISCOMMITTED(dtype_, err_) do { err_ = 0; } while (0)
#ifdef HAVE_WINDOWS_H
#define MPIU_UNREFERENCED_ARG(a) a
#else
Expand Down