Skip to content

Commit aa5b6de

Browse files
[SYCL][NFC] Remove include 'cmath' from the headers.
Updated GetStartedWithSYCLCompiler.md math.h is no longer in conflict with SYCL headers. Signed-off-by: Alexey Voronov <[email protected]>
1 parent d50d1a1 commit aa5b6de

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

sycl/doc/GetStartedWithSYCLCompiler.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,7 @@ int main() {
188188
translation units.
189189
- SYCL host device is not fully supported.
190190
- SYCL works only with OpenCL implementations supporting out-of-order queues.
191-
- `math.h` header is conflicting with SYCL headers. Please use `cmath` as a
192-
workaround for now like below:
193191

194-
```c++
195-
//#include <math.h> // conflicting
196-
#include <cmath>
197-
```
198192

199193
# Find More
200194

sycl/include/CL/sycl/detail/builtins.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
#include <CL/sycl/detail/generic_type_traits.hpp>
1313

1414
#include <type_traits>
15-
// TODO Delete this include after solving the problems in the test
16-
// infrastructure.
17-
#include <cmath>
1815

1916
// TODO Decide whether to mark functions with this attribute.
2017
#define __NOEXC /*noexcept*/

sycl/test/basic_tests/half_type.cpp

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

1515
#include <CL/sycl.hpp>
1616

17+
#include <cmath>
18+
1719
using namespace cl::sycl;
1820

1921
constexpr float FLT_EPSILON = 9.77e-4;

0 commit comments

Comments
 (0)