We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47083f8 commit d22c9c5Copy full SHA for d22c9c5
sycl/include/sycl/sycl.hpp
@@ -91,3 +91,9 @@
91
#include <sycl/ext/oneapi/sub_group.hpp>
92
#include <sycl/ext/oneapi/sub_group_mask.hpp>
93
#include <sycl/ext/oneapi/weak_object.hpp>
94
+
95
+#ifndef SYCL2020_CONFORMANT_APIS
96
+// We used to include those and some code might be reliant on that.
97
+#include <cmath>
98
+#include <complex>
99
+#endif
sycl/test/basic_tests/no_math_in_global_ns.cpp
@@ -1,4 +1,4 @@
1
-// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify %s -Xclang -verify-ignore-unexpected=warning,note
+// RUN: %clangxx -DSYCL2020_CONFORMANT_APIS=1 -fsycl -fsyntax-only -Xclang -verify %s -Xclang -verify-ignore-unexpected=warning,note
2
// expected-no-diagnostics
3
4
// MSVC has the following includes:
0 commit comments