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
// CHECK-NEXT: SubstNonTypeTemplateParmExpr {{.*}} 'int'
30
+
// CHECK-NEXT: NonTypeTemplateParmDecl {{.*}} referenced 'int' depth 0 index 0 N
31
+
// CHECK-NEXT: IntegerLiteral {{.*}} 'int' 75
32
+
cl::sycl::kernel_single_task<classtest_kernel3>(
33
+
[]() { zoo<75>(); });
34
+
35
+
[[intelfpga::scheduler_target_fmax_mhz(0)]] int Var = 0; // expected-error{{'scheduler_target_fmax_mhz' attribute only applies to functions}}
36
+
37
+
cl::sycl::kernel_single_task<classtest_kernel4>(
38
+
[]() [[intelfpga::scheduler_target_fmax_mhz(1048577)]]{}); // expected-error{{'scheduler_target_fmax_mhz' attribute requires integer constant between 0 and 1048576 inclusive}}
39
+
40
+
cl::sycl::kernel_single_task<classtest_kernel5>(
41
+
[]() [[intelfpga::scheduler_target_fmax_mhz(-4)]]{}); // expected-error{{'scheduler_target_fmax_mhz' attribute requires integer constant between 0 and 1048576 inclusive}}
42
+
43
+
cl::sycl::kernel_single_task<classtest_kernel6>(
44
+
[]() [[intelfpga::scheduler_target_fmax_mhz(1), intelfpga::scheduler_target_fmax_mhz(2)]]{}); // expected-warning{{attribute 'scheduler_target_fmax_mhz' is already applied with different parameters}}
0 commit comments