1
1

Cleanup condition check for a param so it doesn't show if not usable.

This commit was SVN r24116.
Этот коммит содержится в:
Ralph Castain 2010-11-30 17:28:53 +00:00
родитель 09f02b3087
Коммит 0465605a9c

Просмотреть файл

@ -515,25 +515,20 @@ int orte_register_params(void)
orte_child_time_to_exit.tv_sec = value; orte_child_time_to_exit.tv_sec = value;
orte_child_time_to_exit.tv_usec = 0; orte_child_time_to_exit.tv_usec = 0;
mca_base_param_reg_int_name("orte", "enable_progress_threads", if (OPAL_EVENT_HAVE_THREAD_SUPPORT) {
"Enable the use of progress threads in ORTE", mca_base_param_reg_int_name("orte", "enable_progress_threads",
false, false, "Enable the use of ORTE progress threads in applications",
(int)false, &value); false, false,
orte_progress_threads_enabled = OPAL_INT_TO_BOOL(value); (int)false, &value);
if (ORTE_PROC_IS_MPI) {
/* MPI procs never use orte progress threads */ if (ORTE_PROC_IS_HNP || ORTE_PROC_IS_DAEMON) {
orte_progress_threads_enabled = true;
} else {
orte_progress_threads_enabled = OPAL_INT_TO_BOOL(value);
}
} else {
orte_progress_threads_enabled = false; orte_progress_threads_enabled = false;
} }
if (!OPAL_EVENT_HAVE_THREAD_SUPPORT && orte_progress_threads_enabled) {
opal_output(orte_clean_output,
"------------------------------------------------------------------\n"
"The MCA param orte_progress_threads_enabled was set to true, but\n"
"the required thread support was not configured and built into the\n"
"event library. Please either do not enable progress threads, or\n"
"reconfigure the event library with --enable-event-thread-support\n"
"------------------------------------------------------------------");
exit(1);
}
#endif /* ORTE_DISABLE_FULL_SUPPORT */ #endif /* ORTE_DISABLE_FULL_SUPPORT */