Changeset 63 for sources/src/gen_code.cc
- Timestamp:
- Oct 23, 2019, 12:33:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.