You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opal_config_asm.m4: consolidate+document the --enable-cross-* options
Put some comments in about exactly what the --enable-cross-* options
are doing (because they're weird). Also explicitly disallow the use
of --disable-cross-FOO (see the README / AS_HELP_MESSAGE for a
description of why). Also add compete information to the "./configure
--help" output about what these options do/do not do, and put a
modified version of that same help message in the README.
Finally, consolidate a little bit of the AC_ARG_ENABLE code in
opal_config_asm.m4 file to reduce a little redundancy.
Signed-off-by: Jeff Squyres <[email protected]>
[Enable use of __sync builtin atomics (default: enabled)])])
983
998
999
+
AC_ARG_ENABLE([cross-cmpset128],
1000
+
[AC_HELP_STRING([--enable-cross-cmpset128],
1001
+
[WARNING: This option is not intended for most users. It is not a typical --enable-FOO flag, specifically in that using --disable-FOO is disallowed. This flag can *ONLY* be used in its --enable form. When used, this flag tells Open MPI's configure script to skip part of the check for 128-bit atomics and just assume that 128-bit atomics fully work. This should only be necessary in cross-compiling environments (where configure can *compile* and *link* the test, but can't actually *run* the test to verify full functionality).])])
1002
+
1003
+
AS_IF([test "$enable_cross_cmpset128" = "no"],
1004
+
[AC_MSG_WARN([the CLI option --disable-cross-cmpset128 is not permitted])
1005
+
AC_MSG_WARN([please see "./configure --help" and/or the README file])
1006
+
AC_MSG_ERROR([Cannot continue])])
1007
+
1008
+
AC_ARG_ENABLE([cross-cmpxchg16b],
1009
+
[AC_HELP_STRING([--enable-cross-cmpxchg16b],
1010
+
[WARNING: This option is not intended for most users. It is not a typical --enable-FOO flag, specifically in that using --disable-FOO is disallowed. This flag can *ONLY* be used in its --enable form. When used, this flag tells Open MPI's configure script to skip part of the check for 128-bit atomics and just assume that 128-bit atomics fully work. This should only be necessary in cross-compiling environments (where configure can *compile* and *link* the test, but can't actually *run* the test to verify full functionality).])])
1011
+
1012
+
AS_IF([test "$enable_cross_cmpxchg16b" = "no"],
1013
+
[AC_MSG_WARN([the CLI option --disable-cross-cmpxchg12b is not permitted])
1014
+
AC_MSG_WARN([please see "./configure --help" and/or the README file])
1015
+
AC_MSG_ERROR([Cannot continue])])
1016
+
984
1017
opal_cv_asm_builtin="BUILTIN_NO"
985
1018
AS_IF([test "$opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" != "no"],
0 commit comments