comparison 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
comparison
equal deleted inserted replaced
0:a41b0254f8f6 2:2f808035ef67
43 /* SSRSemReq */; 43 /* SSRSemReq */;
44 44
45 typedef struct 45 typedef struct
46 { 46 {
47 PrivQueueStruc **readyVPQs; 47 PrivQueueStruc **readyVPQs;
48 HashTable *commHashTbl; 48 HashTable *commHashTbl;
49 int numVirtPr; 49 int32 numVirtPr;
50 int nextCoreToGetNewPr; 50 int32 nextCoreToGetNewPr;
51 int32 primitiveStartTime;
51 } 52 }
52 SSRSemEnv; 53 SSRSemEnv;
53 54
54 55
55 //=========================================================================== 56 //===========================================================================
56 57
57 void 58 void
58 SSR__create_seed_procr_and_do_work( VirtProcrFnPtr fn, void *initData ); 59 SSR__create_seed_procr_and_do_work( VirtProcrFnPtr fn, void *initData );
60
61 int32
62 SSR__giveMinWorkUnitCycles( float32 percentOverhead );
63
64 void inline
65 SSR__start_primitive();
66
67 int32 inline
68 SSR__end_primitive_and_give_cycles();
69
59 70
60 //======================= 71 //=======================
61 72
62 void 73 void
63 SSR__init(); 74 SSR__init();