Skip to content

Commit 4c65ac4

Browse files
committed
fixed the include files. Somehow I copied a slightly old repo and it still had <chrono> and the omp_common.hpp file. They have been removed.
Signed-off-by: todd.erdner <[email protected]>
1 parent 0f155d3 commit 4c65ac4

File tree

2 files changed

+4
-38
lines changed

2 files changed

+4
-38
lines changed

DirectProgramming/DPC++/ParallelPatterns/openmp_reduction/src/main.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
//
44
// SPDX-License-Identifier: MIT
55
// =============================================================
6-
#include <chrono>
76
#include <iomanip> // setprecision library
87
#include <iostream>
9-
#include "omp_common.hpp"
8+
#include "dpc_common.hpp"
109

1110
// cpu_seq_calc_pi is a simple sequential CPU routine
1211
// that calculates all the slices and then
@@ -73,21 +72,21 @@ int main(int argc, char** argv) {
7372
// time is measured the 2nd time you run it.
7473
pi = openmp_device_calc_pi(num_steps);
7574

76-
TimeInterval T;
75+
dpc_common::TimeInterval T;
7776
pi = cpu_seq_calc_pi(num_steps);
7877
auto stop = T.Elapsed();
7978
std::cout << "Cpu Seq calc: \t\t";
8079
std::cout << std::setprecision(3) << "PI =" << pi;
8180
std::cout << " in " << stop << " seconds" << std::endl;
8281

83-
TimeInterval T2;
82+
dpc_common::TimeInterval T2;
8483
pi = openmp_host_calc_pi(num_steps);
8584
auto stop2 = T2.Elapsed();
8685
std::cout << "Host OpenMP:\t\t";
8786
std::cout << std::setprecision(3) << "PI =" << pi;
8887
std::cout << " in " << stop2 << " seconds" << std::endl;
8988

90-
TimeInterval T3;
89+
dpc_common::TimeInterval T3;
9190
pi = openmp_device_calc_pi(num_steps);
9291
auto stop3 = T3.Elapsed();
9392
std::cout << "Offload OpenMP:\t\t";

DirectProgramming/DPC++/ParallelPatterns/openmp_reduction/src/omp_common.hpp

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)