Skip to content

Commit e0324d7

Browse files
committed
Clang-format fix
Signed-off-by: amochalo <[email protected]>
1 parent 2a41dfa commit e0324d7

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

sycl/include/CL/sycl/detail/pi.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,13 @@ typedef enum {
8383
PI_COMPILER_NOT_AVAILABLE = CL_COMPILER_NOT_AVAILABLE,
8484
PI_PROFILING_INFO_NOT_AVAILABLE = CL_PROFILING_INFO_NOT_AVAILABLE,
8585
PI_DEVICE_NOT_FOUND = CL_DEVICE_NOT_FOUND,
86-
PI_INVALID_WORK_ITEM_SIZE=CL_INVALID_WORK_ITEM_SIZE,
87-
PI_INVALID_KERNEL_ARGS=CL_INVALID_KERNEL_ARGS,
88-
PI_IMAGE_FORMAT_NOT_SUPPORTED=CL_IMAGE_FORMAT_NOT_SUPPORTED,
89-
PI_MEM_OBJECT_ALLOCATION_FAILURE=CL_MEM_OBJECT_ALLOCATION_FAILURE,
86+
PI_INVALID_WORK_ITEM_SIZE = CL_INVALID_WORK_ITEM_SIZE,
87+
PI_INVALID_KERNEL_ARGS = CL_INVALID_KERNEL_ARGS,
88+
PI_IMAGE_FORMAT_NOT_SUPPORTED = CL_IMAGE_FORMAT_NOT_SUPPORTED,
89+
PI_MEM_OBJECT_ALLOCATION_FAILURE = CL_MEM_OBJECT_ALLOCATION_FAILURE,
9090
PI_ERROR_UNKNOWN = -999
9191
} _pi_result;
9292

93-
9493
typedef enum {
9594
PI_EVENT_COMPLETE = CL_COMPLETE,
9695
PI_EVENT_RUNNING = CL_RUNNING,

sycl/source/detail/error_handling/enqueue_kernel.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,17 @@ bool oclHandleInvalidWorkGroupSize(const device_impl &DeviceImpl,
159159
}
160160
}
161161
}
162-
163-
// TODO: required number of sub-groups, OpenCL 2.1:
164-
// CL_INVALID_WORK_GROUP_SIZE if local_work_size is specified and is not
165-
// consistent with the required number of sub-groups for kernel in the
166-
// program source.
167162

168-
//Fallback
163+
// TODO: required number of sub-groups, OpenCL 2.1:
164+
// CL_INVALID_WORK_GROUP_SIZE if local_work_size is specified and is not
165+
// consistent with the required number of sub-groups for kernel in the
166+
// program source.
167+
168+
// Fallback
169169

170170
constexpr pi_result Error = PI_INVALID_WORK_GROUP_SIZE;
171171
throw runtime_error(
172-
"OpenCL API failed. OpenCL API returns: " + codeToString(Error), Error);
172+
"OpenCL API failed. OpenCL API returns: " + codeToString(Error), Error);
173173
}
174174

175175
bool handleInvalidWorkGroupSize(const device_impl &DeviceImpl, pi_kernel Kernel,

0 commit comments

Comments
 (0)