Skip to content

Commit 68ecfba

Browse files
hpcrainkartpol84
authored andcommitted
Correct "configure --help" output and amend the default setting if user provides a wrong input value, like "runtime" (which works for MPI, but not for OSHMEM)
(cherry-picked from 997a00c)
1 parent d4fbe6d commit 68ecfba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/oshmem_configure_options.m4

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ AC_DEFINE_UNQUOTED([OSHMEM_SPEC_COMPAT], [$OSHMEM_SPEC_COMPAT],
7373
#
7474
AC_MSG_CHECKING([if want OSHMEM API parameter checking])
7575
AC_ARG_WITH(oshmem-param-check,
76-
AC_HELP_STRING([--oshmem-param-check(=VALUE)],
76+
AC_HELP_STRING([--with-oshmem-param-check(=VALUE)],
7777
[behavior of OSHMEM API function parameter checking. Valid values are: always, never. If --with-oshmem-param-check is specified with no VALUE argument, it is equivalent to a VALUE of "always"; --without-oshmem-param-check is equivalent to "never" (default: always).]))
7878
if test "$enable_oshmem" != "no"; then
7979
if test "$with_oshmem_param_check" = "no" || \
@@ -86,10 +86,11 @@ if test "$enable_oshmem" != "no"; then
8686
shmem_param_check=1
8787
AC_MSG_RESULT([always])
8888
else
89+
shmem_param_check=1
8990
AC_MSG_RESULT([unknown])
9091
AC_MSG_WARN([*** Unrecognized --with-oshmem-param-check value])
9192
AC_MSG_WARN([*** See "configure --help" output])
92-
AC_MSG_WARN([*** Defaulting to "runtime"])
93+
AC_MSG_WARN([*** Defaulting to "always"])
9394
fi
9495
else
9596
shmem_param_check=0

0 commit comments

Comments
 (0)