Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.h @ 166:aefd87f9d12f
loop graph
| author | Nina Engelhardt |
|---|---|
| date | Tue, 18 Oct 2011 15:53:04 +0200 |
| parents | 395f58384a5c |
| children | 981acd1db6af |
comparison
equal
deleted
inserted
replaced
| 57:a8546b3ee725 | 75:9c79d1d050fc |
|---|---|
| 16 #include "DynArray/DynArray.h" | 16 #include "DynArray/DynArray.h" |
| 17 #include "Hash_impl/PrivateHash.h" | 17 #include "Hash_impl/PrivateHash.h" |
| 18 #include "vmalloc.h" | 18 #include "vmalloc.h" |
| 19 #include "Counters/Counters.h" | 19 #include "Counters/Counters.h" |
| 20 #include "dependency.h" | 20 #include "dependency.h" |
| 21 #include "loop.h" | |
| 21 | 22 |
| 22 #include <pthread.h> | 23 #include <pthread.h> |
| 23 #include <sys/time.h> | 24 #include <sys/time.h> |
| 24 | 25 |
| 25 | 26 |
| 75 // different cores. | 76 // different cores. |
| 76 //#define NUM_TSC_ROUND_TRIPS 10 | 77 //#define NUM_TSC_ROUND_TRIPS 10 |
| 77 | 78 |
| 78 #define MEAS__PERF_COUNTERS | 79 #define MEAS__PERF_COUNTERS |
| 79 #define DETECT_DEPENDENCIES | 80 #define DETECT_DEPENDENCIES |
| 81 #define DETECT_LOOP_GRAPH | |
| 80 | 82 |
| 81 //========================= Hardware related Constants ===================== | 83 //========================= Hardware related Constants ===================== |
| 82 //This value is the number of hardware threads in the shared memory | 84 //This value is the number of hardware threads in the shared memory |
| 83 // machine | 85 // machine |
| 84 #define NUM_CORES 2 | 86 #define NUM_CORES 2 |
| 277 PrivDynArrayInfo* dependenciesInfo; | 279 PrivDynArrayInfo* dependenciesInfo; |
| 278 #endif | 280 #endif |
| 279 #ifdef MEAS__PERF_COUNTERS // | 281 #ifdef MEAS__PERF_COUNTERS // |
| 280 CounterRecord** counter_history; | 282 CounterRecord** counter_history; |
| 281 PrivDynArrayInfo* counter_history_array_info; | 283 PrivDynArrayInfo* counter_history_array_info; |
| 284 #endif | |
| 285 #ifdef DETECT_LOOP_GRAPH | |
| 286 bulb* loop_graph; | |
| 287 PrivDynArrayInfo* loop_graph_array_info; | |
| 288 int loop_counter[NUM_CORES]; | |
| 282 #endif | 289 #endif |
| 283 } | 290 } |
| 284 MasterEnv; | 291 MasterEnv; |
| 285 | 292 |
| 286 //========================= Extra Stuff Data Strucs ======================= | 293 //========================= Extra Stuff Data Strucs ======================= |
