From 8e28b2a225bea52f8fc96c29584435b49b3e4b65 Mon Sep 17 00:00:00 2001
From: gianlucarossi15 <gianluca.rossi2000@live.com>
Date: Tue, 12 Mar 2024 10:41:04 +0100
Subject: [PATCH] minor changes

---
 (p,t)_sparsification/main.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/(p,t)_sparsification/main.cpp b/(p,t)_sparsification/main.cpp
index 957d266..bba6c35 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
 
-- 
GitLab