Changeset 63 for sources/src/gen_code.cc


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/gen_code.cc

    r62 r63  
    4949#include <iostream>
    5050#include <fstream>
    51 #ifdef USE_OPENMP
     51#ifdef _OPENMP
    5252    #include <omp.h>
    5353#endif
     
    572572unsigned long long busy_wait_f0, busy_wait_f1, busy_wait_up, busy_wait_ml;
    573573unsigned long long last_wait_f0, last_wait_f1, last_wait_up, last_wait_ml;
    574 #ifdef USE_OPENMP
     574#ifdef _OPENMP
    575575#pragma omp threadprivate (nb_func, func_list)
    576576#pragma omp threadprivate (busy_wait_f0, busy_wait_f1, busy_wait_up,busy_wait_ml)
     
    613613unsigned int expected_globaltime = 0;
    614614volatile unsigned int globaltime __attribute__ ((aligned (128))) = 0;
    615 #ifdef USE_OPENMP
     615#ifdef _OPENMP
    616616#pragma omp threadprivate (expected_globaltime)
    617617#pragma omp shared (globaltime)
     
    639639    }
    640640#else
    641     #ifdef USE_OPENMP
     641    #ifdef _OPENMP
    642642    #pragma omp barrier
    643643    #endif
     
    659659    }
    660660#else
    661     #ifdef USE_OPENMP
     661    #ifdef _OPENMP
    662662    #pragma omp barrier
    663663    #endif
    664664#endif
    665665    if (!quasistatic_list.empty()) {
    666 #ifdef USE_OPENMP
     666#ifdef _OPENMP
    667667#pragma omp master
    668668#endif
     
    681681        }
    682682#else
    683     #ifdef USE_OPENMP
     683    #ifdef _OPENMP
    684684    #pragma omp barrier
    685685    #endif
Note: See TracChangeset for help on using the changeset viewer.