You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto dptr_begin = dpct::device_pointer<bool>(deviceArray2 + 4);
100
-
auto dptr_end = dpct::device_pointer<bool>(deviceArray2 + 8);
85
+
dpct::device_vector<bool>dev_vec2(host_vec2);
86
+
101
87
102
88
// call algorithm
103
-
auto result = std::transform_reduce(oneapi::dpl::execution::dpcpp_default, dptr_begin, dptr_end, 0, std::plus<bool>(), oneapi::dpl::identity());
89
+
auto result = std::transform_reduce(oneapi::dpl::execution::dpcpp_default, dev_vec2.begin()+4, dev_vec2.end(), 0, std::plus<bool>(), oneapi::dpl::identity());
104
90
105
-
test_name = "transform_reduce with USM allocation 2";
91
+
test_name = "transform_reduce with device_vector 2";
0 commit comments