Skip to content

Commit 1929dc4

Browse files
test/support/utils_invoke.h - expand test coverage for check compile-time errors when we move execution policy into algorithm
1 parent b69dabf commit 1929dc4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/support/utils_invoke.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,16 @@ struct invoke_on_all_hetero_policies
219219
auto my_policy = make_new_policy<kernel_name>(queue);
220220
iterator_invoker<::std::random_access_iterator_tag, /*IsReverse*/ ::std::false_type>()(
221221
my_policy, op, ::std::forward<Args>(rest)...);
222+
223+
#if !__SYCL_UNNAMED_LAMBDA__
224+
if (std::sin(0) == std::cos(0))
225+
{
226+
// We just need to compile some Kernel code and we don't need to run this code in run-time
227+
// so we can move the rest of params again
228+
iterator_invoker<::std::random_access_iterator_tag, /*IsReverse*/ ::std::false_type>()(
229+
std::move(my_policy), op, ::std::forward<Args>(rest)...);
230+
}
231+
#endif
222232
}
223233
else
224234
{

0 commit comments

Comments
 (0)