diff VMS.h @ 45:5388f1c2da6f

added MIN_WORK_UNIT_CYCLES and updated comments
author Me
date Thu, 14 Oct 2010 17:07:23 -0700
parents 6c9f314daf24
children 72373405c816 8f7141a9272e
line diff
     1.1 --- a/VMS.h	Sat Sep 11 08:36:55 2010 -0700
     1.2 +++ b/VMS.h	Thu Oct 14 17:07:23 2010 -0700
     1.3 @@ -15,12 +15,16 @@
     1.4  #include "Histogram/Histogram.h"
     1.5  #include <pthread.h>
     1.6  
     1.7 -   //When DEBUG is defined, VMS does sequential exe in the main thread
     1.8 +   //When SEQUENTIAL is defined, VMS does sequential exe in the main thread
     1.9     // It still does co-routines and all the mechanisms are the same, it just
    1.10     // has only a single thread and animates VPs one at a time
    1.11 -#define SEQUENTIAL
    1.12 +//#define SEQUENTIAL
    1.13  
    1.14 -   //when MEAS__TAKE_SUSP_TSC is defined, causes code to be inserted and
    1.15 +#define PRINT_DEBUG(msg) //printf(msg); fflush(stdin);
    1.16 +#define PRINT1_DEBUG(msg, param) //printf(msg, param); fflush(stdin);
    1.17 +#define PRINT2_DEBUG(msg, p1, p2) //printf(msg, p1, p2); fflush(stdin);
    1.18 +
    1.19 +   //when MEAS__TIME_STAMP_SUSP is defined, causes code to be inserted and
    1.20     // compiled-in that saves the low part of the time stamp count just before
    1.21     // suspending a processor and just after resuming that processor.  It is
    1.22     // saved into a field added to VirtProcr.  Have to sanity-check for
    1.23 @@ -29,14 +33,17 @@
    1.24  #define MEAS__TIME_MASTER
    1.25  #define MEAS__NUM_TIMES_TO_RUN 100000
    1.26  
    1.27 +#define NUM_TSC_ROUND_TRIPS 10
    1.28 +
    1.29     //This value is the number of hardware threads in the shared memory
    1.30     // machine
    1.31  #define NUM_CORES        4
    1.32  
    1.33 -   // make double-num-cores scheduling slots, plus extra for master
    1.34 -//#define NUM_SCHED_SLOTS  (2 * NUM_CORES + 1)
    1.35 +   // balance amortizing master fixed overhead vs imbalance potential
    1.36  #define NUM_SCHED_SLOTS  3
    1.37  
    1.38 +#define MIN_WORK_UNIT_CYCLES 20000
    1.39 +
    1.40  #define READYTOANIMATE_RETRIES 10000
    1.41  
    1.42     // stack