File tree Expand file tree Collapse file tree 4 files changed +25
-31
lines changed Expand file tree Collapse file tree 4 files changed +25
-31
lines changed Original file line number Diff line number Diff line change 1919#include < iostream>
2020
2121#if TEST_DYNAMIC_SELECTION_AVAILABLE
22-
23- namespace TestUtils
24- {
25- template <typename Op, ::std::size_t CallNumber>
26- struct unique_kernel_name ;
27-
28- template <typename Policy, int idx>
29- using new_kernel_name = unique_kernel_name<typename std::decay_t <Policy>::kernel_name, idx>;
30- } // namespace TestUtils
22+ #include " utils_sycl_defs.h"
3123
3224int
3325test_dl_initialization (const std::vector<sycl::queue>& u)
Original file line number Diff line number Diff line change 1515#include < random>
1616#include < algorithm>
1717#include < iostream>
18- #if TEST_DYNAMIC_SELECTION_AVAILABLE
19-
20- namespace TestUtils
21- {
22- template <typename Op, ::std::size_t CallNumber>
23- struct unique_kernel_name ;
2418
25- template <typename Policy, int idx>
26- using new_kernel_name = unique_kernel_name<typename std::decay_t <Policy>::kernel_name, idx>;
27- } // namespace TestUtils
19+ #if TEST_DYNAMIC_SELECTION_AVAILABLE
20+ #include " utils_sycl_defs.h"
2821
2922static inline void
3023build_universe (std::vector<sycl::queue>& u)
Original file line number Diff line number Diff line change 2020
2121#include " iterator_utils.h"
2222
23- namespace TestUtils
24- {
2523#if TEST_DPCPP_BACKEND_PRESENT
24+ #include " utils_sycl_defs.h"
25+ #endif
2626
27- template <sycl::usm::alloc alloc_type>
28- constexpr ::std::size_t
29- uniq_kernel_index ()
27+ namespace TestUtils
3028{
31- return static_cast <::std::underlying_type_t <sycl::usm::alloc>>(alloc_type);
32- }
33-
34- template <typename Op, ::std::size_t CallNumber>
35- struct unique_kernel_name ;
36-
37- template <typename Policy, int idx>
38- using new_kernel_name = unique_kernel_name<typename std::decay_t <Policy>::kernel_name, idx>;
29+ #if TEST_DPCPP_BACKEND_PRESENT
3930
4031/* *
4132 * make_policy functions test wrappers
Original file line number Diff line number Diff line change 3636# define TEST_LIBSYCL_VERSION 0
3737#endif
3838
39+ namespace TestUtils
40+ {
41+
42+ template <sycl::usm::alloc alloc_type>
43+ constexpr ::std::size_t
44+ uniq_kernel_index ()
45+ {
46+ return static_cast <::std::underlying_type_t <sycl::usm::alloc>>(alloc_type);
47+ }
48+
49+ template <typename Op, ::std::size_t CallNumber>
50+ struct unique_kernel_name ;
51+
52+ template <typename Policy, int idx>
53+ using new_kernel_name = unique_kernel_name<typename std::decay_t <Policy>::kernel_name, idx>;
54+
55+ } /* namespace TestUtils */
56+
3957#endif // _UTILS_SYCL_DEFS_H
You can’t perform that action at this time.
0 commit comments