Changeset 63 for sources/src
- Timestamp:
- Oct 23, 2019, 12:33:29 PM (5 years ago)
- Location:
- sources/src
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/casc.h
r62 r63 24 24 EXTERN char unstable; 25 25 EXTERN int32_t * pending_write_vector_nb; 26 #ifdef USE_OPENMP26 #ifdef _OPENMP 27 27 #pragma omp threadprivate (pending_write_vector_nb) 28 28 #endif -
sources/src/dump_used_options.cc
r62 r63 89 89 "INIT_SIGNALS_TO_ZERO, " 90 90 #endif 91 #ifdef USE_OPENMP92 " USE_OPENMP, "91 #ifdef _OPENMP 92 "_OPENMP, " 93 93 #endif 94 94 "..."; -
sources/src/gen_code.cc
r62 r63 49 49 #include <iostream> 50 50 #include <fstream> 51 #ifdef USE_OPENMP51 #ifdef _OPENMP 52 52 #include <omp.h> 53 53 #endif … … 572 572 unsigned long long busy_wait_f0, busy_wait_f1, busy_wait_up, busy_wait_ml; 573 573 unsigned long long last_wait_f0, last_wait_f1, last_wait_up, last_wait_ml; 574 #ifdef USE_OPENMP574 #ifdef _OPENMP 575 575 #pragma omp threadprivate (nb_func, func_list) 576 576 #pragma omp threadprivate (busy_wait_f0, busy_wait_f1, busy_wait_up,busy_wait_ml) … … 613 613 unsigned int expected_globaltime = 0; 614 614 volatile unsigned int globaltime __attribute__ ((aligned (128))) = 0; 615 #ifdef USE_OPENMP615 #ifdef _OPENMP 616 616 #pragma omp threadprivate (expected_globaltime) 617 617 #pragma omp shared (globaltime) … … 639 639 } 640 640 #else 641 #ifdef USE_OPENMP641 #ifdef _OPENMP 642 642 #pragma omp barrier 643 643 #endif … … 659 659 } 660 660 #else 661 #ifdef USE_OPENMP661 #ifdef _OPENMP 662 662 #pragma omp barrier 663 663 #endif 664 664 #endif 665 665 if (!quasistatic_list.empty()) { 666 #ifdef USE_OPENMP666 #ifdef _OPENMP 667 667 #pragma omp master 668 668 #endif … … 681 681 } 682 682 #else 683 #ifdef USE_OPENMP683 #ifdef _OPENMP 684 684 #pragma omp barrier 685 685 #endif -
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 -
sources/src/global_functions.cc
r62 r63 248 248 assert(pending_write_vector_capacity != 0); 249 249 250 #ifdef USE_OPENMP250 #ifdef _OPENMP 251 251 #define LINE_SIZE 128L 252 252 int malloc_size = (sizeof (pending_write_t) * (pending_write_vector_capacity + 1) + (LINE_SIZE - 1)) & ~(LINE_SIZE - 1); -
sources/src/sc_main.cc
r62 r63 37 37 #include <sstream> 38 38 #include <list> 39 #ifdef USE_OPENMP39 #ifdef _OPENMP 40 40 #include <omp.h> 41 41 #endif … … 90 90 bool use_port_dependency = false; 91 91 92 #ifdef USE_OPENMP92 #ifdef _OPENMP 93 93 bool use_openmp = true; 94 94 #else -
sources/src/sc_module.cc
r62 r63 38 38 #include <vector> 39 39 #include <set> 40 #ifdef USE_OPENMP40 #ifdef _OPENMP 41 41 #include <omp.h> 42 42 #endif … … 131 131 module = &mod; 132 132 dont_initialize = false; 133 #ifdef USE_OPENMP133 #ifdef _OPENMP 134 134 omp_threadnum = omp_get_thread_num(); 135 135 #endif -
sources/src/sc_port.cc
r62 r63 55 55 int32_t * pending_write_vector_nb = 0; 56 56 unsigned long long int total_assig = 0; 57 #ifdef USE_OPENMP57 #ifdef _OPENMP 58 58 #pragma omp threadprivate (pending_write_vector_nb, total_assig) 59 59 #endif … … 69 69 unsigned int pending_write_vector_capacity; 70 70 pending_write_vector_t pending_write_vector = NULL; 71 #ifdef USE_OPENMP71 #ifdef _OPENMP 72 72 #pragma omp threadprivate (pending_write_vector) 73 73 #endif -
sources/src/sc_signal.h
r62 r63 70 70 extern "C" int32_t * pending_write_vector_nb; 71 71 extern "C" unsigned long long int total_assig; 72 #ifdef USE_OPENMP72 #ifdef _OPENMP 73 73 #pragma omp threadprivate(pending_write_vector_nb, total_assig) 74 74 #endif 75 75 extern unsigned int pending_write_vector_capacity; 76 76 extern pending_write_vector_t pending_write_vector; 77 #ifdef USE_OPENMP77 #ifdef _OPENMP 78 78 #pragma omp threadprivate(pending_write_vector) 79 79 #endif -
sources/src/sc_time.cc
r62 r63 55 55 56 56 uint64 nb_cycles = 0; 57 #ifdef USE_OPENMP57 #ifdef _OPENMP 58 58 #pragma omp threadprivate(nb_cycles) 59 59 #endif -
sources/src/sc_time.h
r62 r63 42 42 43 43 extern uint64 nb_cycles; 44 #ifdef USE_OPENMP44 #ifdef _OPENMP 45 45 #pragma omp threadprivate(nb_cycles) 46 46 #endif -
sources/src/sc_ver.cc
r62 r63 78 78 "\n" 79 79 " Last change : " __DATE__ "\n" 80 #ifdef USE_OPENMP80 #ifdef _OPENMP 81 81 " Compiled with OpenMP enabled\n" 82 82 #endif -
sources/src/schedulers.cc
r62 r63 49 49 #include "graph_signals.h" // makegraph 50 50 51 #ifdef USE_OPENMP51 #ifdef _OPENMP 52 52 #include <omp.h> 53 53 #endif … … 64 64 method_process_list_t * transition_func_list; 65 65 method_process_list_t * moore_func_list; 66 #ifdef USE_OPENMP66 #ifdef _OPENMP 67 67 #pragma omp threadprivate(transition_func_list, moore_func_list) 68 68 #endif … … 122 122 void sort_functions() { 123 123 method_process_list_t::const_iterator m; 124 #ifdef USE_OPENMP124 #ifdef _OPENMP 125 125 #pragma omp parallel 126 126 #pragma omp critical … … 130 130 moore_func_list = new method_process_list_t; 131 131 for (m = method_process_list.begin(); m != method_process_list.end(); ++m) { 132 #ifdef USE_OPENMP132 #ifdef _OPENMP 133 133 if ((*m)->omp_threadnum == omp_get_thread_num()) 134 134 #endif … … 234 234 235 235 sort_functions(); 236 #ifdef USE_OPENMP236 #ifdef _OPENMP 237 237 #pragma omp parallel 238 238 #pragma omp critical … … 240 240 { 241 241 if (dump_funclist_info) { 242 #ifdef USE_OPENMP242 #ifdef _OPENMP 243 243 cerr << "Thread " << omp_get_thread_num() << "\n"; 244 244 #endif 245 245 cerr << " Transition functions : " << *transition_func_list << "\n"; 246 246 cerr << " Moore generation functions : " << *moore_func_list << "\n"; 247 #ifdef USE_OPENMP247 #ifdef _OPENMP 248 248 #pragma omp master 249 249 #endif … … 295 295 // Doesn't use port dependancies 296 296 strong_component_list_t * strong_list = NULL; 297 #ifdef USE_OPENMP297 #ifdef _OPENMP 298 298 #pragma omp master 299 299 #endif … … 315 315 // delete *i; 316 316 //} 317 #ifdef USE_OPENMP317 #ifdef _OPENMP 318 318 #pragma omp master 319 319 #endif
Note: See TracChangeset
for help on using the changeset viewer.