@@ -78,13 +78,28 @@ main()
7878
7979 test_policy_instance (dpcpp_default);
8080
81+ test_policy_instance (dpdefault<>);
82+ test_policy_instance (dpdefault<Kernel<1 >>);
83+
84+ if (sycl::device::get_devices (sycl::info::device_type::cpu).size () > 0 )
85+ {
86+ test_policy_instance (dpcpu<>);
87+ test_policy_instance (dpcpu<Kernel<2 >>);
88+ }
89+
90+ if (sycl::device::get_devices (sycl::info::device_type::gpu).size () > 0 )
91+ {
92+ test_policy_instance (dpgpu<>);
93+ test_policy_instance (dpgpu<Kernel<3 >>);
94+ }
95+
8196 // make_device_policy
8297 test_policy_instance (TestUtils::make_device_policy<Kernel<11 >>(q));
8398#if TEST_LIBSYCL_VERSION && TEST_LIBSYCL_VERSION < 60000
8499 // make_device_policy requires a sycl::queue as an argument.
85100 // Currently, there is no implicit conversion (implicit syc::queue constructor by a device selector)
86101 // from a device selector to a queue.
87- // The same test call with explicit queue creation we have below in line 78 .
102+ // The same test call with explicit queue creation we have below.
88103 test_policy_instance (TestUtils::make_device_policy<Kernel<12 >>(TestUtils::default_selector));
89104#endif
90105 test_policy_instance (TestUtils::make_device_policy<Kernel<13 >>(sycl::device{TestUtils::default_selector}));
@@ -94,7 +109,7 @@ main()
94109 test_policy_instance (oneapi::dpl::execution::make_device_policy<Kernel<16 >>());
95110
96111 // device_policy
97- EXPECT_TRUE (device_policy<Kernel<1 >>(q).queue () == q, " wrong result for queue()" );
112+ EXPECT_TRUE (device_policy<Kernel<20 >>(q).queue () == q, " wrong result for queue()" );
98113 test_policy_instance (device_policy<Kernel<21 >>(q));
99114 test_policy_instance (device_policy<Kernel<22 >>(sycl::device{TestUtils::default_selector}));
100115 test_policy_instance (device_policy<Kernel<23 >>(dpcpp_default));
0 commit comments