Skip to content

Commit 2ebc671

Browse files
Include CL/sycl.hpp unconditionally
It is needed to define __SYCL_COMPILER_VERSION
1 parent 43b1f76 commit 2ebc671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl-capi/source/vector_type.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
//===----------------------------------------------------------------------===//
2727

2828
#pragma once
29+
#include <CL/sycl.hpp>
2930

3031
#if __SYCL_COMPILER_VERSION < 20210925
31-
#include <CL/sycl.hpp>
3232
template <typename T> using vector_class_t = sycl::vector_class<T>;
3333
#else
3434
#include <vector>

0 commit comments

Comments
 (0)