diff SSR.h @ 14:bcc22f6f11a5

Added min work-unit cycles and measre primitive time
author Me
date Sun, 10 Oct 2010 09:37:47 -0700
parents 98fd084badde
children 6c6d7fbd7e25
line diff
     1.1 --- a/SSR.h	Wed Sep 01 08:28:08 2010 -0700
     1.2 +++ b/SSR.h	Sun Oct 10 09:37:47 2010 -0700
     1.3 @@ -45,9 +45,10 @@
     1.4  typedef struct
     1.5   {
     1.6     PrivQueueStruc **readyVPQs;
     1.7 -   HashTable      *commHashTbl;
     1.8 -   int             numVirtPr;
     1.9 -   int             nextCoreToGetNewPr;
    1.10 +   HashTable       *commHashTbl;
    1.11 +   int32            numVirtPr;
    1.12 +   int32            nextCoreToGetNewPr;
    1.13 +   int32            primitiveStartTime;
    1.14   }
    1.15  SSRSemEnv;
    1.16  
    1.17 @@ -57,6 +58,16 @@
    1.18  void
    1.19  SSR__create_seed_procr_and_do_work( VirtProcrFnPtr fn, void *initData );
    1.20  
    1.21 +int32
    1.22 +SSR__giveMinWorkUnitCycles( float32 percentOverhead );
    1.23 +
    1.24 +void inline
    1.25 +SSR__start_primitive();
    1.26 +
    1.27 +int32 inline
    1.28 +SSR__end_primitive_and_give_cycles();
    1.29 +
    1.30 +
    1.31  //=======================
    1.32  
    1.33  void