Skip to content

Commit efe1074

Browse files
authored
[SYCL] Include sycl/builtins.hpp in imf header (#7858)
sycl math functions are used in util functions in intel math headers to provide equivalent functionalities as CUDA math. We missed including sycl/builtins.hpp previously, so users must include sycl/sycl.hpp before including sycl intel math headers, this pr fixes this issue.
1 parent 2aa9cc3 commit efe1074

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/include/sycl/ext/intel/math.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//===----------------------------------------------------------------------===//
1010

1111
#pragma once
12+
#include <sycl/builtins.hpp>
1213
#include <sycl/ext/intel/math/imf_half_trivial.hpp>
1314
#include <sycl/half_type.hpp>
1415
#include <type_traits>

0 commit comments

Comments
 (0)