@@ -213,10 +213,10 @@ int main() {
213
213
device dev (selector.select_device ());
214
214
215
215
print_info<info::device::device_type, info::device_type>(dev, " Device type" );
216
- print_info<info::device::vendor_id, sycl::cl_uint >(dev, " Vendor ID" );
217
- print_info<info::device::max_compute_units, sycl::cl_uint >(
216
+ print_info<info::device::vendor_id, std:: uint32_t >(dev, " Vendor ID" );
217
+ print_info<info::device::max_compute_units, std:: uint32_t >(
218
218
dev, " Max compute units" );
219
- print_info<info::device::max_work_item_dimensions, sycl::cl_uint >(
219
+ print_info<info::device::max_work_item_dimensions, std:: uint32_t >(
220
220
dev, " Max work item dimensions" );
221
221
print_info<info::device::max_work_item_sizes<1 >, id<1 >>(
222
222
dev, " Max work item sizes 1D" );
@@ -226,44 +226,44 @@ int main() {
226
226
dev, " Max work item sizes 3D" );
227
227
print_info<info::device::max_work_group_size, size_t >(dev,
228
228
" Max work group size" );
229
- print_info<info::device::preferred_vector_width_char, sycl::cl_uint >(
229
+ print_info<info::device::preferred_vector_width_char, std:: uint32_t >(
230
230
dev, " Preferred vector width char" );
231
- print_info<info::device::preferred_vector_width_short, sycl::cl_uint >(
231
+ print_info<info::device::preferred_vector_width_short, std:: uint32_t >(
232
232
dev, " Preferred vector width short" );
233
- print_info<info::device::preferred_vector_width_int, sycl::cl_uint >(
233
+ print_info<info::device::preferred_vector_width_int, std:: uint32_t >(
234
234
dev, " Preferred vector width int" );
235
- print_info<info::device::preferred_vector_width_long, sycl::cl_uint >(
235
+ print_info<info::device::preferred_vector_width_long, std:: uint32_t >(
236
236
dev, " Preferred vector width long" );
237
- print_info<info::device::preferred_vector_width_float, sycl::cl_uint >(
237
+ print_info<info::device::preferred_vector_width_float, std:: uint32_t >(
238
238
dev, " Preferred vector width float" );
239
- print_info<info::device::preferred_vector_width_double, sycl::cl_uint >(
239
+ print_info<info::device::preferred_vector_width_double, std:: uint32_t >(
240
240
dev, " Preferred vector width double" );
241
- print_info<info::device::preferred_vector_width_half, sycl::cl_uint >(
241
+ print_info<info::device::preferred_vector_width_half, std:: uint32_t >(
242
242
dev, " Preferred vector width half" );
243
- print_info<info::device::native_vector_width_char, sycl::cl_uint >(
243
+ print_info<info::device::native_vector_width_char, std:: uint32_t >(
244
244
dev, " Native vector width char" );
245
- print_info<info::device::native_vector_width_short, sycl::cl_uint >(
245
+ print_info<info::device::native_vector_width_short, std:: uint32_t >(
246
246
dev, " Native vector width short" );
247
- print_info<info::device::native_vector_width_int, sycl::cl_uint >(
247
+ print_info<info::device::native_vector_width_int, std:: uint32_t >(
248
248
dev, " Native vector width int" );
249
- print_info<info::device::native_vector_width_long, sycl::cl_uint >(
249
+ print_info<info::device::native_vector_width_long, std:: uint32_t >(
250
250
dev, " Native vector width long" );
251
- print_info<info::device::native_vector_width_float, sycl::cl_uint >(
251
+ print_info<info::device::native_vector_width_float, std:: uint32_t >(
252
252
dev, " Native vector width float" );
253
- print_info<info::device::native_vector_width_double, sycl::cl_uint >(
253
+ print_info<info::device::native_vector_width_double, std:: uint32_t >(
254
254
dev, " Native vector width double" );
255
- print_info<info::device::native_vector_width_half, sycl::cl_uint >(
255
+ print_info<info::device::native_vector_width_half, std:: uint32_t >(
256
256
dev, " Native vector width half" );
257
257
/* TODO: uncomment when problem with frequency detection is fixed
258
- print_info<info::device::max_clock_frequency, sycl::cl_uint >(
258
+ print_info<info::device::max_clock_frequency, std::uint32_t >(
259
259
dev, "Max clock frequency");*/
260
- print_info<info::device::address_bits, sycl::cl_uint >(dev, " Address bits" );
261
- print_info<info::device::max_mem_alloc_size, sycl::cl_ulong >(
260
+ print_info<info::device::address_bits, std:: uint32_t >(dev, " Address bits" );
261
+ print_info<info::device::max_mem_alloc_size, std:: uint64_t >(
262
262
dev, " Max mem alloc size" );
263
263
print_info<info::device::image_support, bool >(dev, " Image support" );
264
- print_info<info::device::max_read_image_args, sycl::cl_uint >(
264
+ print_info<info::device::max_read_image_args, std:: uint32_t >(
265
265
dev, " Max read image args" );
266
- print_info<info::device::max_write_image_args, sycl::cl_uint >(
266
+ print_info<info::device::max_write_image_args, std:: uint32_t >(
267
267
dev, " Max write image args" );
268
268
print_info<info::device::image2d_max_width, size_t >(dev, " Image2D max width" );
269
269
print_info<info::device::image2d_max_height, size_t >(dev,
@@ -276,10 +276,10 @@ int main() {
276
276
dev, " Image max buffer size" );
277
277
print_info<info::device::image_max_array_size, size_t >(
278
278
dev, " Image max array size" );
279
- print_info<info::device::max_samplers, sycl::cl_uint >(dev, " Max samplers" );
279
+ print_info<info::device::max_samplers, std:: uint32_t >(dev, " Max samplers" );
280
280
print_info<info::device::max_parameter_size, size_t >(dev,
281
281
" Max parameter size" );
282
- print_info<info::device::mem_base_addr_align, sycl::cl_uint >(
282
+ print_info<info::device::mem_base_addr_align, std:: uint32_t >(
283
283
dev, " Mem base addr align" );
284
284
print_info<info::device::half_fp_config, std::vector<info::fp_config>>(
285
285
dev, " Half fp config" );
@@ -289,20 +289,20 @@ int main() {
289
289
dev, " Double fp config" );
290
290
print_info<info::device::global_mem_cache_type, info::global_mem_cache_type>(
291
291
dev, " Global mem cache type" );
292
- print_info<info::device::global_mem_cache_line_size, sycl::cl_uint >(
292
+ print_info<info::device::global_mem_cache_line_size, std:: uint32_t >(
293
293
dev, " Global mem cache line size" );
294
- print_info<info::device::global_mem_cache_size, sycl::cl_ulong >(
294
+ print_info<info::device::global_mem_cache_size, std:: uint64_t >(
295
295
dev, " Global mem cache size" );
296
- print_info<info::device::global_mem_size, sycl::cl_ulong >(dev,
297
- " Global mem size" );
298
- print_info<info::device::max_constant_buffer_size, sycl::cl_ulong >(
296
+ print_info<info::device::global_mem_size, std:: uint64_t >(dev,
297
+ " Global mem size" );
298
+ print_info<info::device::max_constant_buffer_size, std:: uint64_t >(
299
299
dev, " Max constant buffer size" );
300
- print_info<info::device::max_constant_args, sycl::cl_uint >(
300
+ print_info<info::device::max_constant_args, std:: uint32_t >(
301
301
dev, " Max constant args" );
302
302
print_info<info::device::local_mem_type, info::local_mem_type>(
303
303
dev, " Local mem type" );
304
- print_info<info::device::local_mem_size, sycl::cl_ulong >(dev,
305
- " Local mem size" );
304
+ print_info<info::device::local_mem_size, std:: uint64_t >(dev,
305
+ " Local mem size" );
306
306
print_info<info::device::error_correction_support, bool >(
307
307
dev, " Error correction support" );
308
308
print_info<info::device::host_unified_memory, bool >(dev,
@@ -341,7 +341,7 @@ int main() {
341
341
std::cout << " Expected exception has been caught: " << e.what ()
342
342
<< std::endl;
343
343
}
344
- print_info<info::device::partition_max_sub_devices, sycl::cl_uint >(
344
+ print_info<info::device::partition_max_sub_devices, std:: uint32_t >(
345
345
dev, " Partition max sub devices" );
346
346
print_info<info::device::partition_properties,
347
347
std::vector<info::partition_property>>(dev,
@@ -355,8 +355,8 @@ int main() {
355
355
print_info<info::device::partition_type_affinity_domain,
356
356
info::partition_affinity_domain>(dev,
357
357
" Partition type affinity domain" );
358
- print_info<info::device::reference_count, sycl::cl_uint>(dev,
359
- " Reference count" );
358
+ print_info<info::device::reference_count, sycl::opencl:: cl_uint>(
359
+ dev, " Reference count" );
360
360
361
361
std::cout << separator << " Platform information\n " << separator;
362
362
platform plt (dev.get_platform ());
0 commit comments