Skip to content

Commit fa31f52

Browse files
author
Sergey Kanaev
committed
[SYCL] Add ALWAYS_INLINE
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent e334ad8 commit fa31f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/id.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ template <int dimensions = 1> class id : public detail::array<dimensions> {
9696
* conversion:
9797
* int a = id<1>(value); */
9898

99-
operator EnableIfT<(dimensions == 1), size_t>() const {
99+
ALWAYS_INLINE operator EnableIfT<(dimensions == 1), size_t>() const {
100100
size_t Result = this->common_array[0];
101101
__SYCL_ASSUME_INT(Result);
102102
return Result;

0 commit comments

Comments
 (0)