diff --git a/(p,t)_sparsification/main.cpp b/(p,t)_sparsification/main.cpp index 957d266fa904591bf108c80c27b63560fb8fc60a..bba6c3569bdbf236487e41c60f99af20c59bab67 100644 --- a/(p,t)_sparsification/main.cpp +++ b/(p,t)_sparsification/main.cpp @@ -19,7 +19,7 @@ namespace po = boost::program_options; int main(int argc, char *argv[]) { srand((unsigned)time(NULL)); - pthread_t threads[NUM_TRIALS]; +// pthread_t threads[NUM_TRIALS]; po::options_description desc("Allowed options"); desc.add_options() @@ -67,9 +67,8 @@ int main(int argc, char *argv[]) { -// Assuming NUM_TRIALS and other variables are defined somewhere -#pragma omp parallel for + #pragma omp parallel for num_threads(NUM_TRIALS) for (int i = 0; i < NUM_TRIALS; i++) { // Inside the loop, each thread will execute one iteration