config.h File Reference

Go to the source code of this file.

Defines

#define SAMPA_DISABLED   0
#define SAMPA_ENABLED   1
#define SAMPA_CONFIG_COLD_RESTART   SAMPA_ENABLED
 Store periodic checkpoint of the simulation to resume in second run.
#define SAMPA_CONFIG_MULTI_THREADED   SAMPA_DISABLED
 Make Sampa multithreaded When using multicore CPU or multiple CPU machine, it can be worth using a separate thread for the IO.
#define SAMPA_CONFIG_TRACE_CALLS   SAMPA_DISABLED
 Allow logging of call between modules The logging can be activated at runtime however even when not activated it has an overhead so when these traces are not of any use, and only the simulation speed matters, you may decide to disable the trace calls.
#define SAMPA_CONFIG_DEBUG   SAMPA_ENABLED
 Enable/Disable all traces capabilities when your model is proven and speed if really desired, you can turn off all debugging facilities it is still binary compatible.


Define Documentation

#define SAMPA_CONFIG_COLD_RESTART   SAMPA_ENABLED

Store periodic checkpoint of the simulation to resume in second run.

Cold restart stores the simulation state in a file and allows to restart from this state in another run of the process. It can thus be very useful when running long batch regression tests sharing a common initialization. But it comes at a price: Thread stacks can no be stored. This is why Sampa doesn't support SC_THREAD equivalents. But normally the intended models to be written with Sampa shall not require them. This gives some guidelines, and push constraints form the user to fully benefit from it

Definition at line 37 of file config.h.

#define SAMPA_CONFIG_DEBUG   SAMPA_ENABLED

Enable/Disable all traces capabilities when your model is proven and speed if really desired, you can turn off all debugging facilities it is still binary compatible.

Definition at line 63 of file config.h.

#define SAMPA_CONFIG_MULTI_THREADED   SAMPA_DISABLED

Make Sampa multithreaded When using multicore CPU or multiple CPU machine, it can be worth using a separate thread for the IO.

Despites this introduces more cpu usage it can make simulation faster because some IO can be stored and finalized in parallel with the simulation

Definition at line 46 of file config.h.

#define SAMPA_CONFIG_TRACE_CALLS   SAMPA_DISABLED

Allow logging of call between modules The logging can be activated at runtime however even when not activated it has an overhead so when these traces are not of any use, and only the simulation speed matters, you may decide to disable the trace calls.

Definition at line 55 of file config.h.

#define SAMPA_DISABLED   0

Definition at line 22 of file config.h.

#define SAMPA_ENABLED   1

Definition at line 23 of file config.h.


Generated on Sat Feb 16 16:23:15 2008 for Sampa by  doxygen 1.5.3