Skip to content

Commit ff45354

Browse files
authored
Add headers (oneapi-src#2384)
* Add headers histogram sample * Add headers PrefixSum sample * Add headers 1d_HeatTransfer sample
1 parent d0679d3 commit ff45354

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

DirectProgramming/C++SYCL/ParallelPatterns/PrefixSum/src/PrefixSum.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434

3535
#include <iostream>
3636
#include <string>
37+
#include <cmath>
38+
#include <complex>
3739
// dpc_common.hpp can be found in the dev-utilities include folder.
3840
// e.g., $ONEAPI_ROOT/dev-utilities/<version>/include/dpc_common.hpp
3941
#include "dpc_common.hpp"

DirectProgramming/C++SYCL/ParallelPatterns/histogram/src/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
#include <iostream>
1414
#include <random>
1515

16+
#include <cmath>
17+
#include <complex>
18+
1619
// Dense algorithm stores all the bins, even if bin has 0 entries
1720
// input array [4,4,1,0,1,2]
1821
// output [(0,1) (1,2)(2,1)(3,0)(4,2)]

DirectProgramming/C++SYCL/StructuredGrids/1d_HeatTransfer/src/1d_HeatTransfer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
#include <iomanip>
4040
#include <iostream>
4141
#include <string>
42+
#include <cmath>
43+
#include <complex>
4244
// dpc_common.hpp can be found in the dev-utilities include folder.
4345
// e.g., $ONEAPI_ROOT/dev-utilities/<version>/include/dpc_common.hpp
4446
#include "dpc_common.hpp"

0 commit comments

Comments
 (0)