Index: /branches/reconfiguration/platforms/tsar_generic_iob/Makefile
===================================================================
--- /branches/reconfiguration/platforms/tsar_generic_iob/Makefile	(revision 905)
+++ /branches/reconfiguration/platforms/tsar_generic_iob/Makefile	(revision 906)
@@ -1,6 +1,4 @@
 TAGS := cscope.out
-
 SOCLIB_CC_ARGS :=
-SOCLIB_CC_ARGS += "-b caba:reconf:vci_xicu"
 
 all: simul.x
@@ -8,5 +6,5 @@
 
 simul.x: top.cpp top.desc
-	soclib-cc $(SOCLIB_CC_ARGS) -p top.desc -I. -o simul.x
+	soclib-cc $(SOCLIB_CC_ARGS) -P -p top.desc -I. -o simul.x
 
 $(TAGS): top.desc
Index: /branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py
===================================================================
--- /branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py	(revision 905)
+++ /branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py	(revision 906)
@@ -8,4 +8,5 @@
 import faultyprocs
 import argparse
+import multiprocessing
 
 def run(args):
@@ -86,10 +87,7 @@
         os.environ["SOCLIB_TTY"] = "FILES"
 
-    if (args.x * args.y) <= 4:
-        ompthreads = args.x * args.y
-    elif (args.x * args.y) <= 16:
-        ompthreads = 4
-    else:
-        ompthreads = 8
+    ompthreads = (args.x * args.y) / 4
+    cpucount = multiprocessing.cpu_count()
+    if ompthreads > cpucount: ompthreads = cpucount
 
     print "[ run.py ] starting simulation"
Index: /branches/reconfiguration/platforms/tsar_generic_iob/soclib.conf
===================================================================
--- /branches/reconfiguration/platforms/tsar_generic_iob/soclib.conf	(revision 905)
+++ /branches/reconfiguration/platforms/tsar_generic_iob/soclib.conf	(revision 906)
@@ -1,5 +1,8 @@
 # append compilation flags
 cflags = config.default.toolchain.cflags
-cflags.extend(['-DUSE_OPENMP=0'])
+if config.default == config.envsystemcassomp:
+	cflags.extend(['-DUSE_OPENMP=1'])
+else:
+	cflags.extend(['-DUSE_OPENMP=0'])
 #cflags.extend(['-ggdb'])
 config.default.toolchain.set("cflags", cflags)
Index: /branches/reconfiguration/platforms/tsar_generic_iob/top.cpp
===================================================================
--- /branches/reconfiguration/platforms/tsar_generic_iob/top.cpp	(revision 905)
+++ /branches/reconfiguration/platforms/tsar_generic_iob/top.cpp	(revision 906)
@@ -513,5 +513,6 @@
    omp_set_dynamic(false);
    omp_set_num_threads(threads_nr);
-   std::cerr << "Built with openmp version " << _OPENMP << std::endl;
+   std::cerr << "Built with openmp version " << _OPENMP
+             << " / numthreads = " << threads_nr << std::endl;
 #endif
 
@@ -1503,5 +1504,5 @@
 
    // cycles between stats
-   const size_t stats_period = 100000;
+   const size_t stats_period = 150000;
    const size_t simul_period = debug_ok ? debug_period : stats_period;
 
