File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
source/detail/error_handling Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,13 @@ typedef enum {
83
83
PI_COMPILER_NOT_AVAILABLE = CL_COMPILER_NOT_AVAILABLE,
84
84
PI_PROFILING_INFO_NOT_AVAILABLE = CL_PROFILING_INFO_NOT_AVAILABLE,
85
85
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,
90
90
PI_ERROR_UNKNOWN = -999
91
91
} _pi_result;
92
92
93
-
94
93
typedef enum {
95
94
PI_EVENT_COMPLETE = CL_COMPLETE,
96
95
PI_EVENT_RUNNING = CL_RUNNING,
Original file line number Diff line number Diff line change @@ -159,17 +159,17 @@ bool oclHandleInvalidWorkGroupSize(const device_impl &DeviceImpl,
159
159
}
160
160
}
161
161
}
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.
167
162
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
169
169
170
170
constexpr pi_result Error = PI_INVALID_WORK_GROUP_SIZE;
171
171
throw runtime_error (
172
- " OpenCL API failed. OpenCL API returns: " + codeToString (Error), Error);
172
+ " OpenCL API failed. OpenCL API returns: " + codeToString (Error), Error);
173
173
}
174
174
175
175
bool handleInvalidWorkGroupSize (const device_impl &DeviceImpl, pi_kernel Kernel,
You can’t perform that action at this time.
0 commit comments