# HG changeset patch # User Me # Date 1287101243 25200 # Node ID 5388f1c2da6f17bfa3ba1bbbac67ea2062f7891a # Parent ce720506491bf4703b4bedb4b311fb88b27c194b added MIN_WORK_UNIT_CYCLES and updated comments diff -r ce720506491b -r 5388f1c2da6f VMS.h --- a/VMS.h Sat Sep 11 08:36:55 2010 -0700 +++ b/VMS.h Thu Oct 14 17:07:23 2010 -0700 @@ -15,12 +15,16 @@ #include "Histogram/Histogram.h" #include - //When DEBUG is defined, VMS does sequential exe in the main thread + //When SEQUENTIAL is defined, VMS does sequential exe in the main thread // It still does co-routines and all the mechanisms are the same, it just // has only a single thread and animates VPs one at a time -#define SEQUENTIAL +//#define SEQUENTIAL - //when MEAS__TAKE_SUSP_TSC is defined, causes code to be inserted and +#define PRINT_DEBUG(msg) //printf(msg); fflush(stdin); +#define PRINT1_DEBUG(msg, param) //printf(msg, param); fflush(stdin); +#define PRINT2_DEBUG(msg, p1, p2) //printf(msg, p1, p2); fflush(stdin); + + //when MEAS__TIME_STAMP_SUSP is defined, causes code to be inserted and // compiled-in that saves the low part of the time stamp count just before // suspending a processor and just after resuming that processor. It is // saved into a field added to VirtProcr. Have to sanity-check for @@ -29,14 +33,17 @@ #define MEAS__TIME_MASTER #define MEAS__NUM_TIMES_TO_RUN 100000 +#define NUM_TSC_ROUND_TRIPS 10 + //This value is the number of hardware threads in the shared memory // machine #define NUM_CORES 4 - // make double-num-cores scheduling slots, plus extra for master -//#define NUM_SCHED_SLOTS (2 * NUM_CORES + 1) + // balance amortizing master fixed overhead vs imbalance potential #define NUM_SCHED_SLOTS 3 +#define MIN_WORK_UNIT_CYCLES 20000 + #define READYTOANIMATE_RETRIES 10000 // stack