Changeset 62 for sources/src/sc_signal.h


Ignore:
Timestamp:
Feb 16, 2017, 3:46:11 PM (7 years ago)
Author:
meunier
Message:
  • Functional (or supposedly functional) OpenMP support configure must be run with --enable-use-omp and the topcell must define the USE_OPENMP flag before including the .h files of systemcass (if openmp enabled).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/sc_signal.h

    r60 r62  
    7070extern "C" int32_t * pending_write_vector_nb;
    7171extern "C" unsigned long long int total_assig;
     72#ifdef USE_OPENMP
    7273#pragma omp threadprivate(pending_write_vector_nb, total_assig)
     74#endif
    7375extern unsigned int pending_write_vector_capacity;
    74 
    7576extern pending_write_vector_t pending_write_vector;
     77#ifdef USE_OPENMP
    7678#pragma omp threadprivate(pending_write_vector)
     79#endif
    7780
    7881template < typename T >
     
    282285#else
    283286    memset(&val, 0, sizeof(val));
     287    memset(&new_val, 0, sizeof(new_val));
    284288#endif
    285289}
Note: See TracChangeset for help on using the changeset viewer.