We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b69dabf commit 1929dc4Copy full SHA for 1929dc4
test/support/utils_invoke.h
@@ -219,6 +219,16 @@ struct invoke_on_all_hetero_policies
219
auto my_policy = make_new_policy<kernel_name>(queue);
220
iterator_invoker<::std::random_access_iterator_tag, /*IsReverse*/ ::std::false_type>()(
221
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
232
}
233
else
234
{
0 commit comments