13
13
#include < CL/sycl/detail/common.hpp>
14
14
#include < CL/sycl/detail/generic_type_lists.hpp>
15
15
#include < CL/sycl/detail/type_traits.hpp>
16
+ #include < CL/sycl/export.hpp>
16
17
#include < CL/sycl/half_type.hpp>
17
18
18
19
#include < limits>
@@ -290,7 +291,7 @@ template <typename T, typename B>
290
291
using convert_data_type = convert_data_type_impl<T, B, T>;
291
292
292
293
// Try to get pointer_t, otherwise T
293
- template <typename T> class TryToGetPointerT {
294
+ template <typename T> class SYCL_API TryToGetPointerT {
294
295
static T check (...);
295
296
template <typename A> static typename A::pointer_t check (const A &);
296
297
@@ -301,7 +302,7 @@ template <typename T> class TryToGetPointerT {
301
302
};
302
303
303
304
// Try to get element_type, otherwise T
304
- template <typename T> class TryToGetElementType {
305
+ template <typename T> class SYCL_API TryToGetElementType {
305
306
static T check (...);
306
307
template <typename A> static typename A::element_type check (const A &);
307
308
@@ -311,7 +312,7 @@ template <typename T> class TryToGetElementType {
311
312
};
312
313
313
314
// Try to get vector_t, otherwise T
314
- template <typename T> class TryToGetVectorT {
315
+ template <typename T> class SYCL_API TryToGetVectorT {
315
316
static T check (...);
316
317
template <typename A> static typename A::vector_t check (const A &);
317
318
@@ -322,7 +323,7 @@ template <typename T> class TryToGetVectorT {
322
323
323
324
// Try to get pointer_t (if pointer_t indicates on the type with_remainder
324
325
// vector_t creates a pointer type on vector_t), otherwise T
325
- template <typename T> class TryToGetPointerVecT {
326
+ template <typename T> class SYCL_API TryToGetPointerVecT {
326
327
static T check (...);
327
328
template <typename A>
328
329
static typename PtrValueType<
@@ -594,24 +595,24 @@ template <typename T> static constexpr T quiet_NaN() {
594
595
}
595
596
596
597
// is_same_vector_size
597
- template <int FirstSize, typename ... Args> class is_same_vector_size_impl ;
598
+ template <int FirstSize, typename ... Args>
599
+ class SYCL_API is_same_vector_size_impl;
598
600
599
601
template <int FirstSize, typename T, typename ... Args>
600
- class is_same_vector_size_impl <FirstSize, T, Args...> {
602
+ class SYCL_API is_same_vector_size_impl<FirstSize, T, Args...> {
601
603
using CurrentT = detail::remove_pointer_t <T>;
602
604
static constexpr int Size = vector_size<CurrentT>::value;
603
605
static constexpr bool IsSizeEqual = (Size == FirstSize);
604
606
605
607
public:
606
608
static constexpr bool value =
607
- IsSizeEqual ? is_same_vector_size_impl<FirstSize, Args...>::value
608
- : false ;
609
+ IsSizeEqual ? is_same_vector_size_impl<FirstSize, Args...>::value : false ;
609
610
};
610
611
611
612
template <int FirstSize>
612
- class is_same_vector_size_impl <FirstSize> : public std::true_type {};
613
+ class SYCL_API is_same_vector_size_impl<FirstSize> : public std::true_type {};
613
614
614
- template <typename T, typename ... Args> class is_same_vector_size {
615
+ template <typename T, typename ... Args> class SYCL_API is_same_vector_size {
615
616
using CurrentT = remove_pointer_t <T>;
616
617
static constexpr int Size = vector_size<CurrentT>::value;
617
618
0 commit comments