Skip to content

Commit 946bf14

Browse files
author
Alexander Batashev
committed
Apply clang-format
Signed-off-by: Alexander Batashev <[email protected]>
1 parent 158a8d6 commit 946bf14

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

sycl/source/detail/device_info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
#include <CL/sycl/detail/os_util.hpp>
1010
#include <CL/sycl/device.hpp>
11-
#include <detail/device_info.hpp>
1211
#include <detail/device_impl.hpp>
12+
#include <detail/device_info.hpp>
1313
#include <detail/platform_util.hpp>
1414

1515
#include <chrono>

sycl/source/detail/device_info.hpp

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ read_execution_bitfield(cl_device_exec_capabilities bits);
2727

2828
// Mapping expected SYCL return types to those returned by PI calls
2929
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; };
3232
template <> struct sycl_to_pi<platform> { using type = RT::PiPlatform; };
3333

3434
// 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> {
154154
template <>
155155
struct get_device_info<vector_class<info::execution_capability>,
156156
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) {
159159
cl_device_exec_capabilities result;
160160
Plugin.call<PiApiKind::piDeviceGetInfo>(
161161
dev, pi::cast<RT::PiDeviceInfo>(info::device::execution_capabilities),
@@ -272,8 +272,7 @@ struct get_device_info<info::partition_affinity_domain,
272272
template <>
273273
struct get_device_info<info::partition_property,
274274
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) {
277276
size_t resultSize;
278277
Plugin.call<PiApiKind::piDeviceGetInfo>(dev, PI_DEVICE_INFO_PARTITION_TYPE,
279278
0, nullptr, &resultSize);
@@ -341,7 +340,7 @@ typename info::param_traits<info::device, param>::return_type
341340
get_device_info_host() = delete;
342341

343342
#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>();
345344

346345
#include <CL/sycl/info/device_traits.def>
347346

@@ -352,8 +351,7 @@ cl_uint get_native_vector_width(size_t idx);
352351
// USM
353352

354353
// 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> {
357355
static bool get(RT::PiDevice dev, const plugin &Plugin) {
358356
pi_usm_capabilities caps;
359357
pi_result Err = Plugin.call_nocheck<PiApiKind::piDeviceGetInfo>(
@@ -365,8 +363,7 @@ struct get_device_info<bool, info::device::usm_device_allocations> {
365363
};
366364

367365
// 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> {
370367
static bool get(RT::PiDevice dev, const plugin &Plugin) {
371368
pi_usm_capabilities caps;
372369
pi_result Err = Plugin.call_nocheck<PiApiKind::piDeviceGetInfo>(
@@ -378,8 +375,7 @@ struct get_device_info<bool, info::device::usm_host_allocations> {
378375
};
379376

380377
// 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> {
383379
static bool get(RT::PiDevice dev, const plugin &Plugin) {
384380
pi_usm_capabilities caps;
385381
pi_result Err = Plugin.call_nocheck<PiApiKind::piDeviceGetInfo>(
@@ -407,8 +403,7 @@ struct get_device_info<bool, info::device::usm_restricted_shared_allocations> {
407403
};
408404

409405
// 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> {
412407
static bool get(RT::PiDevice dev, const plugin &Plugin) {
413408
pi_usm_capabilities caps;
414409
pi_result Err = Plugin.call_nocheck<PiApiKind::piDeviceGetInfo>(

sycl/source/event.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
#include <CL/sycl/detail/pi.hpp>
1212
#include <CL/sycl/event.hpp>
1313
#include <CL/sycl/info/info_desc.hpp>
14+
#include <CL/sycl/stl.hpp>
1415
#include <detail/event_impl.hpp>
1516
#include <detail/scheduler/scheduler.hpp>
16-
#include <CL/sycl/stl.hpp>
1717

1818
#include <memory>
1919
#include <unordered_set>

sycl/source/half_type.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <CL/sycl/half_type.hpp>
1010
// This is included to enable __builtin_expect()
1111
#include <detail/platform_util.hpp>
12+
1213
#include <cstring>
1314

1415
__SYCL_INLINE_NAMESPACE(cl) {

sycl/source/queue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ queue::queue(const context &SyclContext, const device &SyclDevice,
7878
const property_list &PropList)
7979
: queue(SyclContext, SyclDevice,
8080
detail::getSyclObjImpl(SyclContext)->get_async_handler(),
81-
PropList){}
81+
PropList) {}
8282

8383
cl_command_queue queue::get() const { return impl->get(); }
8484

0 commit comments

Comments
 (0)