Skip to content

Commit 091d314

Browse files
committed
clang-format
1 parent 0cda7c1 commit 091d314

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

sycl/source/detail/error_handling/error_handling.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ void handleErrorOrWarning(ur_result_t, const device_impl &, ur_kernel_handle_t,
3131

3232
namespace kernel_get_group_info {
3333
/// Analyzes error code of urKernelGetGroupInfo.
34-
void handleErrorOrWarning(ur_result_t, ur_kernel_group_info_t,
35-
adapter_impl &);
34+
void handleErrorOrWarning(ur_result_t, ur_kernel_group_info_t, adapter_impl &);
3635
} // namespace kernel_get_group_info
3736

3837
} // namespace detail

sycl/source/detail/kernel_impl.hpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class kernel_impl {
7676
cl_kernel get() const {
7777
ur_native_handle_t nativeHandle = 0;
7878
getAdapter().call<UrApiKind::urKernelGetNativeHandle>(MKernel,
79-
&nativeHandle);
79+
&nativeHandle);
8080
__SYCL_OCL_CALL(clRetainKernel, ur::cast<cl_kernel>(nativeHandle));
8181
return ur::cast<cl_kernel>(nativeHandle);
8282
}
@@ -373,10 +373,11 @@ kernel_impl::queryMaxNumWorkGroups(queue Queue,
373373
WG[2] = WorkGroupSize[2];
374374

375375
uint32_t GroupCount{0};
376-
if (auto Result = Adapter.call_nocheck<
377-
UrApiKind::urKernelSuggestMaxCooperativeGroupCount>(
378-
Handle, DeviceHandleRef, Dimensions, WG, DynamicLocalMemorySize,
379-
&GroupCount);
376+
if (auto Result =
377+
Adapter
378+
.call_nocheck<UrApiKind::urKernelSuggestMaxCooperativeGroupCount>(
379+
Handle, DeviceHandleRef, Dimensions, WG,
380+
DynamicLocalMemorySize, &GroupCount);
380381
Result != UR_RESULT_ERROR_UNSUPPORTED_FEATURE &&
381382
Result != UR_RESULT_ERROR_INVALID_WORK_GROUP_SIZE) {
382383
// The feature is supported and the group size is valid. Check for other
@@ -513,8 +514,8 @@ ADD_TEMPLATE_METHOD_SPEC(3)
513514
getSyclObjImpl(Queue.get_device())->getHandleRef(); \
514515
uint32_t KernelSubWGSize = 0; \
515516
Adapter.call<UrApiKind::Kind>(MKernel, DeviceNativeHandle, Reg, \
516-
sizeof(uint32_t), &KernelSubWGSize, \
517-
nullptr); \
517+
sizeof(uint32_t), &KernelSubWGSize, \
518+
nullptr); \
518519
return KernelSubWGSize; \
519520
}
520521

sycl/source/detail/kernel_info.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ get_kernel_info(ur_kernel_handle_t Kernel, adapter_impl &Adapter) {
5252

5353
// TODO catch an exception and put it to list of asynchronous exceptions
5454
Adapter.call<UrApiKind::urKernelGetInfo>(Kernel, UrInfoCode<Param>::value, 0,
55-
nullptr, &ResultSize);
55+
nullptr, &ResultSize);
5656
if (ResultSize == 0) {
5757
return "";
5858
}
5959
std::vector<char> Result(ResultSize);
6060
// TODO catch an exception and put it to list of asynchronous exceptions
6161
Adapter.call<UrApiKind::urKernelGetInfo>(Kernel, UrInfoCode<Param>::value,
62-
ResultSize, Result.data(), nullptr);
62+
ResultSize, Result.data(), nullptr);
6363
return std::string(Result.data());
6464
}
6565

@@ -71,7 +71,7 @@ get_kernel_info(ur_kernel_handle_t Kernel, adapter_impl &Adapter) {
7171

7272
// TODO catch an exception and put it to list of asynchronous exceptions
7373
Adapter.call<UrApiKind::urKernelGetInfo>(Kernel, UrInfoCode<Param>::value,
74-
sizeof(uint32_t), &Result, nullptr);
74+
sizeof(uint32_t), &Result, nullptr);
7575
return Result;
7676
}
7777

@@ -92,7 +92,7 @@ get_kernel_device_specific_info_helper(
9292
ur_kernel_handle_t Kernel, [[maybe_unused]] ur_device_handle_t Device,
9393
adapter_impl &Adapter, void *Result, size_t Size) {
9494
Adapter.call<UrApiKind::urKernelGetInfo>(Kernel, UrInfoCode<Param>::value,
95-
Size, Result, nullptr);
95+
Size, Result, nullptr);
9696
}
9797

9898
template <typename Param>
@@ -188,18 +188,18 @@ get_kernel_device_specific_info<
188188

189189
ur_program_handle_t Program;
190190
Adapter.call<UrApiKind::urKernelGetInfo>(Kernel, UR_KERNEL_INFO_PROGRAM,
191-
sizeof(ur_program_handle_t),
192-
&Program, nullptr);
191+
sizeof(ur_program_handle_t),
192+
&Program, nullptr);
193193
// Retrieve the associated device list
194194
size_t URDevicesSize = 0;
195-
Adapter.call<UrApiKind::urProgramGetInfo>(Program, UR_PROGRAM_INFO_DEVICES,
196-
0, nullptr, &URDevicesSize);
195+
Adapter.call<UrApiKind::urProgramGetInfo>(Program, UR_PROGRAM_INFO_DEVICES, 0,
196+
nullptr, &URDevicesSize);
197197

198198
std::vector<ur_device_handle_t> URDevices(URDevicesSize /
199199
sizeof(ur_device_handle_t));
200200
Adapter.call<UrApiKind::urProgramGetInfo>(Program, UR_PROGRAM_INFO_DEVICES,
201-
URDevicesSize, URDevices.data(),
202-
nullptr);
201+
URDevicesSize, URDevices.data(),
202+
nullptr);
203203
assert(Device2SpillMap.size() == URDevices.size());
204204

205205
// Map the result back to the program devices. UR provides the following

0 commit comments

Comments
 (0)