Changeset 63 for sources/src/schedulers.cc
- Timestamp:
- Oct 23, 2019, 12:33:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.