1
1

Have orte-info show thread support as well

This commit was SVN r27624.
Этот коммит содержится в:
Ralph Castain 2012-11-18 18:15:22 +00:00
родитель e0ff5d9c05
Коммит 7a5f6b584c

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

@ -514,10 +514,11 @@ void orte_info_do_config(bool want_all)
/* setup strings that require allocation */ /* setup strings that require allocation */
if (OPAL_HAVE_SOLARIS_THREADS || OPAL_HAVE_POSIX_THREADS) { /* should just test OPAL_HAVE_THREADS */ if (OPAL_HAVE_SOLARIS_THREADS || OPAL_HAVE_POSIX_THREADS) { /* should just test OPAL_HAVE_THREADS */
asprintf(&threads, "%s (OPAL: %s, progress: %s)", OPAL_HAVE_SOLARIS_THREADS ? "solaris" : asprintf(&threads, "%s (OPAL: %s, ORTE progress: %s, Event lib: %s)", OPAL_HAVE_SOLARIS_THREADS ? "solaris" :
(OPAL_HAVE_POSIX_THREADS ? "posix" : "type unknown"), /* "type unknown" can presumably never happen */ (OPAL_HAVE_POSIX_THREADS ? "posix" : "type unknown"), /* "type unknown" can presumably never happen */
OPAL_ENABLE_MULTI_THREADS ? "yes" : "no", OPAL_ENABLE_MULTI_THREADS ? "yes" : "no",
ORTE_ENABLE_PROGRESS_THREADS ? "yes" : "no"); ORTE_ENABLE_PROGRESS_THREADS ? "yes" : "no",
OPAL_EVENT_HAVE_THREAD_SUPPORT ? "yes" : "no");
} else { } else {
threads = strdup("no"); threads = strdup("no");
} }
@ -562,9 +563,10 @@ void orte_info_do_config(bool want_all)
orte_info_out_int("C double align", "compiler:c:align:double", OPAL_ALIGNMENT_DOUBLE); orte_info_out_int("C double align", "compiler:c:align:double", OPAL_ALIGNMENT_DOUBLE);
} }
orte_info_out("Thread support", "option:threads", threads);
if (want_all) { if (want_all) {
orte_info_out("Thread support", "option:threads", threads);
orte_info_out("Build CFLAGS", "option:build:cflags", OMPI_BUILD_CFLAGS); orte_info_out("Build CFLAGS", "option:build:cflags", OMPI_BUILD_CFLAGS);
orte_info_out("Build CXXFLAGS", "option:build:cxxflags", OMPI_BUILD_CXXFLAGS); orte_info_out("Build CXXFLAGS", "option:build:cxxflags", OMPI_BUILD_CXXFLAGS);