Changeset 63 for sources/src/gen_code.h
- Timestamp:
- Oct 23, 2019, 12:33:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/gen_code.h
r62 r63 21 21 #include "process_dependency.h" 22 22 23 #ifdef USE_OPENMP23 #ifdef _OPENMP 24 24 #include <omp.h> 25 25 #endif … … 108 108 extern unsigned int expected_globaltime; 109 109 extern volatile unsigned int globaltime; 110 #ifdef USE_OPENMP110 #ifdef _OPENMP 111 111 #pragma omp threadprivate (busy_wait_f0, busy_wait_f1, busy_wait_up, busy_wait_ml, nb_func) 112 112 #pragma omp threadprivate (last_wait_f0, last_wait_f1, last_wait_up, last_wait_ml) … … 117 117 118 118 119 #ifdef USE_OPENMP119 #ifdef _OPENMP 120 120 #pragma omp parallel 121 121 #endif … … 126 126 127 127 expected_globaltime = 0; 128 #ifdef USE_OPENMP128 #ifdef _OPENMP 129 129 #pragma omp master 130 130 #endif 131 131 { 132 132 globaltime = 0; 133 #ifdef USE_OPENMP133 #ifdef _OPENMP 134 134 num_omp_threads = omp_get_num_threads(); 135 135 #else … … 138 138 } 139 139 140 #ifdef USE_OPENMP140 #ifdef _OPENMP 141 141 #pragma omp barrier 142 142 #endif 143 143 while (!(have_to_stop || cyclecount == 0)) { 144 144 //while (!(have_to_stop || number_of_cycles == 0)) { 145 #ifdef USE_OPENMP145 #ifdef _OPENMP 146 146 #pragma omp master 147 147 #endif … … 150 150 } 151 151 internal_sc_cycle2(); 152 #ifdef USE_OPENMP152 #ifdef _OPENMP 153 153 #pragma omp master 154 154 #endif … … 159 159 // number_of_cycles = (number_of_cycles < 0) ? number_of_cycles : number_of_cycles - 1; 160 160 } 161 #ifdef USE_OPENMP161 #ifdef _OPENMP 162 162 #pragma omp barrier 163 163 #endif 164 164 #if 0 165 #ifdef USE_OPENMP165 #ifdef _OPENMP 166 166 #pragma omp critical 167 167 { … … 204 204 if (is_posted_write()) { 205 205 // update posted value to external signals 206 #ifdef USE_OPENMP206 #ifdef _OPENMP 207 207 #pragma omp parallel 208 208 #endif … … 215 215 // don't need to do func_combinationals since 'unstable' flag is now false 216 216 if (is_posted_write()) { 217 #ifdef USE_OPENMP217 #ifdef _OPENMP 218 218 #pragma omp parallel 219 219 #endif
Note: See TracChangeset
for help on using the changeset viewer.