Skip to content
Snippets Groups Projects

Minor changes

Open Gianluca Rossi requested to merge grossi/ptspar:dev into main
@@ -18,7 +18,7 @@ namespace po = boost::program_options;
@@ -18,7 +18,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));
unsigned int nproc = std::thread::hardware_concurrency();
po::options_description desc("Allowed options");
po::options_description desc("Allowed options");
desc.add_options()
desc.add_options()
("help", "produce help message")
("help", "produce help message")
@@ -66,7 +66,7 @@ int main(int argc, char *argv[]) {
@@ -66,7 +66,7 @@ int main(int argc, char *argv[]) {
#pragma omp parallel for num_threads(NUM_TRIALS)
#pragma omp parallel for num_threads(nproc)
for (int i = 0; i < NUM_TRIALS; i++) {
for (int i = 0; i < NUM_TRIALS; i++) {
auto start = std::chrono::steady_clock::now();
auto start = std::chrono::steady_clock::now();
Loading