Skip to content

Commit 505e195

Browse files
v-klochkovbader
authored andcommitted
[SYCL] Fix errors caused by unsupported __builtin_expect() on Windows
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent d404d1c commit 505e195

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/source/half_type.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88

99
#include <CL/sycl/half_type.hpp>
10+
// This is included to enable __builtin_expect()
11+
#include <CL/sycl/detail/platform_util.hpp>
1012
#include <iostream>
1113

1214
namespace cl {

0 commit comments

Comments
 (0)