[mvapich-discuss] MPI version bug in OSU Benchmarks
Adam T. Moody
moody20 at llnl.gov
Fri Oct 3 16:19:21 EDT 2014
Hello MVAPICH team,
Ignacio was compiling the latest OSU Benchmarks using an older MPI and
ran into this compile error:
osu_1sc.c: In function 'process_options':
osu_1sc.c:308: error: 'WIN_ALLOCATE' undeclared (first use in this function)
osu_1sc.c:308: error: (Each undeclared identifier is reported only once
osu_1sc.c:308: error: for each function it appears in.)
make[2]: *** [osu_1sc.o] Error 1
This file is missing a #if guard to look for MPI 3. The following fix
resolves the issue:
if ((options.rank0 == 'D' || options.rank1 == 'D')
#if MPI_VERSION >= 3
&& *win == WIN_ALLOCATE)
#else
)
#endif
-Adam
More information about the mvapich-discuss
mailing list