Ignore:
Timestamp:
Oct 23, 2019, 12:33:29 PM (5 years ago)
Author:
bouyer
Message:

Remplace USE_OPENMP with _OPENMP, the latter is automagically defined
by the compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/schedulers.cc

    r62 r63  
    4949#include "graph_signals.h" // makegraph
    5050
    51 #ifdef USE_OPENMP
     51#ifdef _OPENMP
    5252    #include <omp.h>
    5353#endif
     
    6464method_process_list_t * transition_func_list;
    6565method_process_list_t * moore_func_list;
    66 #ifdef USE_OPENMP
     66#ifdef _OPENMP
    6767#pragma omp threadprivate(transition_func_list, moore_func_list)
    6868#endif
     
    122122void sort_functions() {
    123123    method_process_list_t::const_iterator m;
    124 #ifdef USE_OPENMP
     124#ifdef _OPENMP
    125125#pragma omp parallel
    126126#pragma omp critical
     
    130130        moore_func_list = new method_process_list_t;
    131131        for (m = method_process_list.begin(); m != method_process_list.end(); ++m) {
    132 #ifdef USE_OPENMP
     132#ifdef _OPENMP
    133133            if ((*m)->omp_threadnum == omp_get_thread_num())
    134134#endif
     
    234234
    235235    sort_functions();
    236 #ifdef USE_OPENMP
     236#ifdef _OPENMP
    237237#pragma omp parallel
    238238#pragma omp critical
     
    240240    {
    241241        if (dump_funclist_info) {
    242 #ifdef USE_OPENMP
     242#ifdef _OPENMP
    243243            cerr << "Thread " << omp_get_thread_num() << "\n";
    244244#endif
    245245            cerr << "  Transition functions : " << *transition_func_list << "\n";
    246246            cerr << "  Moore generation functions : " << *moore_func_list << "\n";
    247 #ifdef USE_OPENMP
     247#ifdef _OPENMP
    248248#pragma omp master
    249249#endif
     
    295295                // Doesn't use port dependancies
    296296                strong_component_list_t * strong_list = NULL;
    297 #ifdef USE_OPENMP
     297#ifdef _OPENMP
    298298#pragma omp master
    299299#endif
     
    315315                //    delete *i;
    316316                //}
    317 #ifdef USE_OPENMP
     317#ifdef _OPENMP
    318318#pragma omp master
    319319#endif
Note: See TracChangeset for help on using the changeset viewer.