Skip to content
Snippets Groups Projects
Commit 8e28b2a2 authored by gianlucarossi15's avatar gianlucarossi15
Browse files

minor changes

parent d959eac0
No related branches found
No related tags found
1 merge request!1New code version
...@@ -19,7 +19,7 @@ namespace po = boost::program_options; ...@@ -19,7 +19,7 @@ namespace po = boost::program_options;
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
srand((unsigned)time(NULL)); srand((unsigned)time(NULL));
pthread_t threads[NUM_TRIALS]; // pthread_t threads[NUM_TRIALS];
po::options_description desc("Allowed options"); po::options_description desc("Allowed options");
desc.add_options() desc.add_options()
...@@ -67,9 +67,8 @@ int main(int argc, char *argv[]) { ...@@ -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++) { for (int i = 0; i < NUM_TRIALS; i++) {
// Inside the loop, each thread will execute one iteration // Inside the loop, each thread will execute one iteration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment