Skip to content

Commit aed7e1b

Browse files
committed
Fix clang-format
1 parent ff11594 commit aed7e1b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

sycl/source/detail/error_handling/enqueue_kernel.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ bool handleInvalidWorkGroupSize(const device_impl &DeviceImpl, pi_kernel Kernel,
8383
NDRDesc.LocalSize[1] != CompileWGSize[1] ||
8484
NDRDesc.LocalSize[2] != CompileWGSize[2])
8585
throw sycl::nd_range_error(
86-
"The specified local size {" +
87-
std::to_string(NDRDesc.LocalSize[0]) + ", " +
88-
std::to_string(NDRDesc.LocalSize[1]) + ", " +
86+
"The specified local size {" + std::to_string(NDRDesc.LocalSize[0]) +
87+
", " + std::to_string(NDRDesc.LocalSize[1]) + ", " +
8988
std::to_string(NDRDesc.LocalSize[2]) +
9089
"} doesn't match the required work-group size specified "
9190
"in the program source {" +
@@ -192,21 +191,22 @@ bool handleInvalidWorkGroupSize(const device_impl &DeviceImpl, pi_kernel Kernel,
192191
Opts.find("-cl-std=CL2.0") != string_class::npos;
193192
const bool RequiresUniformWGSize =
194193
Opts.find("-cl-uniform-work-group-size") != string_class::npos;
195-
std::string LocalWGSize =
196-
std::to_string(NDRDesc.LocalSize[0]) + ", " +
197-
std::to_string(NDRDesc.LocalSize[1]) + ", " +
198-
std::to_string(NDRDesc.LocalSize[2]);
194+
std::string LocalWGSize = std::to_string(NDRDesc.LocalSize[0]) +
195+
", " +
196+
std::to_string(NDRDesc.LocalSize[1]) +
197+
", " + std::to_string(NDRDesc.LocalSize[2]);
199198
std::string GlobalWGSize =
200199
std::to_string(NDRDesc.GlobalSize[0]) + ", " +
201200
std::to_string(NDRDesc.GlobalSize[1]) + ", " +
202201
std::to_string(NDRDesc.GlobalSize[2]);
203202
std::string message =
204203
LocalExceedsGlobal
205204
? "Local workgroup size {" + LocalWGSize +
206-
"} is greater than global range size {" + GlobalWGSize + "}"
205+
"} is greater than global range size {" + GlobalWGSize +
206+
"}"
207207
: "Global work size {" + GlobalWGSize +
208-
"} is not evenly divisible by localgroup size {" +
209-
LocalWGSize + "}";
208+
"} is not evenly divisible by localgroup size {" +
209+
LocalWGSize + "}";
210210
if (!HasStd20)
211211
throw sycl::nd_range_error(
212212
message.append(

0 commit comments

Comments
 (0)