Changeset 65 for sources/src/sc_main.cc


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

Various performance improvements for the parallel systemcass: cache-aligned
data structures, write only when needed, disable some unneeded barriers.

Fix bug in the non-openmp case: a pointer was not initialized

various style updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/sc_main.cc

    r63 r65  
    3535 */
    3636
    37 #include <sstream>
     37#include <cassert>
     38#include <cstring> // strcmp
    3839#include <list>
    3940#ifdef _OPENMP
     
    4142#endif
    4243#include <set>
    43 #include <cstring> // strcmp
    44 #include <cassert>
     44#include <sstream>
    4545
    4646#include "internal.h"
     
    9191
    9292#ifdef _OPENMP
    93 bool use_openmp = true;
     93const bool use_openmp = true;
    9494#else
    95 bool use_openmp = false;
     95const bool use_openmp = false;
    9696#endif
    9797
     
    395395    }
    396396
    397     int ret = sc_main(argc, argv);
    398     //free(pending_write_vector);
    399     close_systemcass();
     397  int ret = sc_main(argc, argv);
     398//  free (pending_write_vector);
     399  close_systemcass ();
    400400
    401401    if (have_to_stop) {
Note: See TracChangeset for help on using the changeset viewer.