@@ -27,8 +27,8 @@ read_execution_bitfield(cl_device_exec_capabilities bits);
27
27
28
28
// Mapping expected SYCL return types to those returned by PI calls
29
29
template <typename T> struct sycl_to_pi { using type = T; };
30
- template <> struct sycl_to_pi <bool > { using type = pi_bool; };
31
- template <> struct sycl_to_pi <device> { using type = RT::PiDevice; };
30
+ template <> struct sycl_to_pi <bool > { using type = pi_bool; };
31
+ template <> struct sycl_to_pi <device> { using type = RT::PiDevice; };
32
32
template <> struct sycl_to_pi <platform> { using type = RT::PiPlatform; };
33
33
34
34
// Mapping fp_config device info types to the values used to check fp support
@@ -154,8 +154,8 @@ template <> struct get_device_info<bool, info::device::queue_profiling> {
154
154
template <>
155
155
struct get_device_info <vector_class<info::execution_capability>,
156
156
info::device::execution_capabilities> {
157
- static vector_class<info::execution_capability>
158
- get (RT::PiDevice dev, const plugin &Plugin) {
157
+ static vector_class<info::execution_capability> get (RT::PiDevice dev,
158
+ const plugin &Plugin) {
159
159
cl_device_exec_capabilities result;
160
160
Plugin.call <PiApiKind::piDeviceGetInfo>(
161
161
dev, pi::cast<RT::PiDeviceInfo>(info::device::execution_capabilities),
@@ -272,8 +272,7 @@ struct get_device_info<info::partition_affinity_domain,
272
272
template <>
273
273
struct get_device_info <info::partition_property,
274
274
info::device::partition_type_property> {
275
- static info::partition_property get (RT::PiDevice dev,
276
- const plugin &Plugin) {
275
+ static info::partition_property get (RT::PiDevice dev, const plugin &Plugin) {
277
276
size_t resultSize;
278
277
Plugin.call <PiApiKind::piDeviceGetInfo>(dev, PI_DEVICE_INFO_PARTITION_TYPE,
279
278
0 , nullptr , &resultSize);
@@ -341,7 +340,7 @@ typename info::param_traits<info::device, param>::return_type
341
340
get_device_info_host () = delete ;
342
341
343
342
#define PARAM_TRAITS_SPEC (param_type, param, ret_type ) \
344
- template <> ret_type get_device_info_host<info::param_type::param>();
343
+ template <> ret_type get_device_info_host<info::param_type::param>();
345
344
346
345
#include < CL/sycl/info/device_traits.def>
347
346
@@ -352,8 +351,7 @@ cl_uint get_native_vector_width(size_t idx);
352
351
// USM
353
352
354
353
// Specialization for device usm query.
355
- template <>
356
- struct get_device_info <bool , info::device::usm_device_allocations> {
354
+ template <> struct get_device_info <bool , info::device::usm_device_allocations> {
357
355
static bool get (RT::PiDevice dev, const plugin &Plugin) {
358
356
pi_usm_capabilities caps;
359
357
pi_result Err = Plugin.call_nocheck <PiApiKind::piDeviceGetInfo>(
@@ -365,8 +363,7 @@ struct get_device_info<bool, info::device::usm_device_allocations> {
365
363
};
366
364
367
365
// Specialization for host usm query.
368
- template <>
369
- struct get_device_info <bool , info::device::usm_host_allocations> {
366
+ template <> struct get_device_info <bool , info::device::usm_host_allocations> {
370
367
static bool get (RT::PiDevice dev, const plugin &Plugin) {
371
368
pi_usm_capabilities caps;
372
369
pi_result Err = Plugin.call_nocheck <PiApiKind::piDeviceGetInfo>(
@@ -378,8 +375,7 @@ struct get_device_info<bool, info::device::usm_host_allocations> {
378
375
};
379
376
380
377
// Specialization for shared usm query.
381
- template <>
382
- struct get_device_info <bool , info::device::usm_shared_allocations> {
378
+ template <> struct get_device_info <bool , info::device::usm_shared_allocations> {
383
379
static bool get (RT::PiDevice dev, const plugin &Plugin) {
384
380
pi_usm_capabilities caps;
385
381
pi_result Err = Plugin.call_nocheck <PiApiKind::piDeviceGetInfo>(
@@ -407,8 +403,7 @@ struct get_device_info<bool, info::device::usm_restricted_shared_allocations> {
407
403
};
408
404
409
405
// Specialization for system usm query
410
- template <>
411
- struct get_device_info <bool , info::device::usm_system_allocator> {
406
+ template <> struct get_device_info <bool , info::device::usm_system_allocator> {
412
407
static bool get (RT::PiDevice dev, const plugin &Plugin) {
413
408
pi_usm_capabilities caps;
414
409
pi_result Err = Plugin.call_nocheck <PiApiKind::piDeviceGetInfo>(
0 commit comments