@@ -112,6 +112,11 @@ int main() {
112112 NonemptyWrapper.kernel_single_task <class NEK9 >([]() [[sycl::device_has (sycl::aspect::cpu)]] {});
113113 // expected-warning@+1 {{kernel has both attribute 'sycl::device_has' and kernel properties; conflicting properties are ignored}}
114114 NonemptyWrapper.kernel_single_task <class NEK10 >([]() [[sycl::device_has (sycl::aspect::cpu, sycl::aspect::gpu)]] {});
115+ // expected-warning@+4 {{kernel has both attribute 'sycl::reqd_work_group_size' and kernel properties; conflicting properties are ignored}}
116+ // expected-warning@+3 {{kernel has both attribute 'sycl::work_group_size_hint' and kernel properties; conflicting properties are ignored}}
117+ // expected-warning@+2 {{kernel has both attribute 'sycl::reqd_sub_group_size' and kernel properties; conflicting properties are ignored}}
118+ // expected-warning@+1 {{kernel has both attribute 'sycl::device_has' and kernel properties; conflicting properties are ignored}}
119+ NonemptyWrapper.kernel_single_task <class NEK11 >([]() [[sycl::reqd_work_group_size (1 )]] [[sycl::work_group_size_hint (1 )]] [[sycl::reqd_sub_group_size (1 )]] [[sycl::device_has (sycl::aspect::cpu, sycl::aspect::gpu)]] {});
115120
116121 // expected-warning@+1 {{kernel has both attribute 'sycl::reqd_work_group_size' and kernel properties; conflicting properties are ignored}}
117122 NonemptyWrapperWithImplicit.kernel_single_task <class NEKWI1 >([]() [[sycl::reqd_work_group_size (1 )]] {});
@@ -133,6 +138,11 @@ int main() {
133138 NonemptyWrapperWithImplicit.kernel_single_task <class NEKWI9 >([]() [[sycl::device_has (sycl::aspect::cpu)]] {});
134139 // expected-warning@+1 {{kernel has both attribute 'sycl::device_has' and kernel properties; conflicting properties are ignored}}
135140 NonemptyWrapperWithImplicit.kernel_single_task <class NEKWI10 >([]() [[sycl::device_has (sycl::aspect::cpu, sycl::aspect::gpu)]] {});
141+ // expected-warning@+4 {{kernel has both attribute 'sycl::reqd_work_group_size' and kernel properties; conflicting properties are ignored}}
142+ // expected-warning@+3 {{kernel has both attribute 'sycl::work_group_size_hint' and kernel properties; conflicting properties are ignored}}
143+ // expected-warning@+2 {{kernel has both attribute 'sycl::reqd_sub_group_size' and kernel properties; conflicting properties are ignored}}
144+ // expected-warning@+1 {{kernel has both attribute 'sycl::device_has' and kernel properties; conflicting properties are ignored}}
145+ NonemptyWrapperWithImplicit.kernel_single_task <class NEKWI11 >([]() [[sycl::reqd_work_group_size (1 )]] [[sycl::work_group_size_hint (1 )]] [[sycl::reqd_sub_group_size (1 )]] [[sycl::device_has (sycl::aspect::cpu, sycl::aspect::gpu)]] {});
136146
137147 // expected-warning@+1 {{kernel has both attribute 'sycl::reqd_work_group_size' and kernel properties; conflicting properties are ignored}}
138148 NonemptyWrapperWithFilter.kernel_single_task <class NEKWF1 >([]() [[sycl::reqd_work_group_size (1 )]] {});
@@ -154,6 +164,11 @@ int main() {
154164 NonemptyWrapperWithFilter.kernel_single_task <class NEKWF9 >([]() [[sycl::device_has (sycl::aspect::cpu)]] {});
155165 // expected-warning@+1 {{kernel has both attribute 'sycl::device_has' and kernel properties; conflicting properties are ignored}}
156166 NonemptyWrapperWithFilter.kernel_single_task <class NEKWF10 >([]() [[sycl::device_has (sycl::aspect::cpu, sycl::aspect::gpu)]] {});
167+ // expected-warning@+4 {{kernel has both attribute 'sycl::reqd_work_group_size' and kernel properties; conflicting properties are ignored}}
168+ // expected-warning@+3 {{kernel has both attribute 'sycl::work_group_size_hint' and kernel properties; conflicting properties are ignored}}
169+ // expected-warning@+2 {{kernel has both attribute 'sycl::reqd_sub_group_size' and kernel properties; conflicting properties are ignored}}
170+ // expected-warning@+1 {{kernel has both attribute 'sycl::device_has' and kernel properties; conflicting properties are ignored}}
171+ NonemptyWrapperWithFilter.kernel_single_task <class NEKWF11 >([]() [[sycl::reqd_work_group_size (1 )]] [[sycl::work_group_size_hint (1 )]] [[sycl::reqd_sub_group_size (1 )]] [[sycl::device_has (sycl::aspect::cpu, sycl::aspect::gpu)]] {});
157172
158173 // expected-warning@+1 {{kernel has both attribute 'sycl::reqd_work_group_size' and kernel properties; conflicting properties are ignored}}
159174 NonemptyWrapperWithImplicitAndFilter.kernel_single_task <class NEKWIF1 >([]() [[sycl::reqd_work_group_size (1 )]] {});
@@ -175,4 +190,9 @@ int main() {
175190 NonemptyWrapperWithImplicitAndFilter.kernel_single_task <class NEKWIF9 >([]() [[sycl::device_has (sycl::aspect::cpu)]] {});
176191 // expected-warning@+1 {{kernel has both attribute 'sycl::device_has' and kernel properties; conflicting properties are ignored}}
177192 NonemptyWrapperWithImplicitAndFilter.kernel_single_task <class NEKWIF10 >([]() [[sycl::device_has (sycl::aspect::cpu, sycl::aspect::gpu)]] {});
193+ // expected-warning@+4 {{kernel has both attribute 'sycl::reqd_work_group_size' and kernel properties; conflicting properties are ignored}}
194+ // expected-warning@+3 {{kernel has both attribute 'sycl::work_group_size_hint' and kernel properties; conflicting properties are ignored}}
195+ // expected-warning@+2 {{kernel has both attribute 'sycl::reqd_sub_group_size' and kernel properties; conflicting properties are ignored}}
196+ // expected-warning@+1 {{kernel has both attribute 'sycl::device_has' and kernel properties; conflicting properties are ignored}}
197+ NonemptyWrapperWithImplicitAndFilter.kernel_single_task <class NEKWIF11 >([]() [[sycl::reqd_work_group_size (1 )]] [[sycl::work_group_size_hint (1 )]] [[sycl::reqd_sub_group_size (1 )]] [[sycl::device_has (sycl::aspect::cpu, sycl::aspect::gpu)]] {});
178198}
0 commit comments