[med-svn] [SCM] aghermann branch, master, updated. 6da4097099d8c9a4899b0dd94727010588b26301
Andrei Zavada
johnhommer at gmail.com
Sat Dec 15 17:31:34 UTC 2012
The following commit has been merged in the master branch:
commit 3e7374b4b0f1caa81969c653c5d3dd5ff5b3e5f2
Author: Andrei Zavada <johnhommer at gmail.com>
Date: Sat Dec 15 19:23:44 2012 +0200
compile main.cc with OPENMP_CFLAGS so that omp_get_num_threads returns a good value
diff --git a/src/Makefile.am b/src/Makefile.am
index 4b1b25b..7ce5cdc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,6 +8,7 @@ SUBDIRS := \
AM_CXXFLAGS := \
-Wall -std=c++0x \
$(GTK_CFLAGS) $(UNIQUE_CFLAGS) \
+ $(OPENMP_CXXFLAGS) \
-DBUILT_BY=\"@user@\"
bin_PROGRAMS := aghermann
diff --git a/src/main.cc b/src/main.cc
index 64658e7..54d5854 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -89,6 +89,7 @@ main( int argc, char **argv)
agh::global::init_rng();
#ifdef _OPENMP
agh::global::num_procs = omp_get_max_threads();
+ printf( "This host is SMP-capable (omp_get_max_threads() returns %d)\n", agh::global::num_procs);
#endif
if ( aghui::prepare_for_expdesign() ) {
aghui::pop_ok_message( NULL, "UI failed to initialize", "Your install is broken.");
--
Sleep experiment manager
More information about the debian-med-commit
mailing list