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

    r60 r62  
    248248    assert(pending_write_vector_capacity != 0);
    249249
    250 #ifdef _OPENMP
    251 #define LINE_SIZE 128L
     250#ifdef USE_OPENMP
     251    #define LINE_SIZE 128L
    252252    int malloc_size = (sizeof (pending_write_t) * (pending_write_vector_capacity + 1) + (LINE_SIZE - 1)) & ~(LINE_SIZE - 1);
    253253    assert((sizeof(pending_write_t) * (pending_write_vector_capacity + 1)) <= malloc_size && "bad allocation size");
    254254
    255 #pragma omp parallel
     255    #pragma omp parallel
    256256    {
    257257        posix_memalign((void **) &pending_write_vector, LINE_SIZE, malloc_size);
     
    263263#else
    264264    pending_write_vector = (pending_write_vector_t) malloc(sizeof(pending_write_t) * pending_write_vector_capacity);
     265    pending_write_vector_nb = (int32_t *) malloc(sizeof(int32_t));
     266    *pending_write_vector_nb = 0;
    265267#endif
    266268
Note: See TracChangeset for help on using the changeset viewer.