File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,27 @@ struct make_allocatable<void>
68
68
};
69
69
// DPCT_LABEL_END
70
70
71
+ // DPCT_LABEL_BEGIN|_DPCT_LIBSYCL_VERSION|dpct::detail
72
+ // DPCT_DEPENDENCY_EMPTY
73
+ // DPCT_CODE
74
+ #if defined(__LIBSYCL_MAJOR_VERSION) && defined(__LIBSYCL_MINOR_VERSION) && \
75
+ defined (__LIBSYCL_PATCH_VERSION)
76
+ #define _DPCT_LIBSYCL_VERSION \
77
+ (__LIBSYCL_MAJOR_VERSION * 10000 + __LIBSYCL_MINOR_VERSION * 100 + \
78
+ __LIBSYCL_PATCH_VERSION)
79
+ #else
80
+ #define _DPCT_LIBSYCL_VERSION 0
81
+ #endif
82
+ // DPCT_LABEL_END
83
+
71
84
// DPCT_LABEL_BEGIN|__buffer_allocator|dpct::detail
72
85
// DPCT_DEPENDENCY_BEGIN
73
86
// DplExtrasMemory|make_allocatable
74
87
// DPCT_DEPENDENCY_END
75
88
// DPCT_CODE
76
89
template <typename _DataT>
77
90
using __buffer_allocator =
78
- #if _ONEDPL_LIBSYCL_VERSION >= 50707
91
+ #if _DPCT_LIBSYCL_VERSION >= 60000
79
92
sycl::buffer_allocator<typename make_allocatable<_DataT>::type>;
80
93
#else
81
94
sycl::buffer_allocator;
Original file line number Diff line number Diff line change @@ -28,9 +28,18 @@ struct make_allocatable<void>
28
28
using type = dpct::byte_t ;
29
29
};
30
30
31
+ #if defined(__LIBSYCL_MAJOR_VERSION) && defined(__LIBSYCL_MINOR_VERSION) && \
32
+ defined (__LIBSYCL_PATCH_VERSION)
33
+ #define _DPCT_LIBSYCL_VERSION \
34
+ (__LIBSYCL_MAJOR_VERSION * 10000 + __LIBSYCL_MINOR_VERSION * 100 + \
35
+ __LIBSYCL_PATCH_VERSION)
36
+ #else
37
+ #define _DPCT_LIBSYCL_VERSION 0
38
+ #endif
39
+
31
40
template <typename _DataT>
32
41
using __buffer_allocator =
33
- #if _ONEDPL_LIBSYCL_VERSION >= 50707
42
+ #if _DPCT_LIBSYCL_VERSION >= 60000
34
43
sycl::buffer_allocator<typename make_allocatable<_DataT>::type>;
35
44
#else
36
45
sycl::buffer_allocator;
You can’t perform that action at this time.
0 commit comments