We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fae35db commit 5b7d56aCopy full SHA for 5b7d56a
sycl/include/sycl/ext/intel/experimental/esimd/detail/host_util.hpp
@@ -12,6 +12,8 @@
12
13
#ifndef __SYCL_DEVICE_ONLY__
14
15
+#include <limits>
16
+
17
#define SIMDCF_ELEMENT_SKIP(i)
18
19
__SYCL_INLINE_NAMESPACE(cl) {
@@ -33,6 +35,7 @@ namespace esimd {
33
35
namespace emu {
34
36
namespace detail {
37
38
+using half = sycl::detail::half_impl::half;
39
constexpr int sat_is_on = 1;
40
41
static long long abs(long long a) {
sycl/test/esimd/regression/esimd_hpp_wo_sycl_hpp_included.cpp
@@ -0,0 +1,7 @@
1
+// RUN: %clangxx -fsycl -fsyntax-only %s
2
+// expected-no-diagnostics
3
4
+#include <sycl/ext/intel/experimental/esimd.hpp>
5
6
+// This test checks that host compiler can compile esimd.hpp when there is no
7
+// sycl.hpp included (can happen in pure-ESIMD library).
0 commit comments