@@ -244,8 +244,7 @@ bool handleError(pi_result Error, const device_impl &DeviceImpl,
244
244
throw sycl::nd_range_error (
245
245
" The kernel argument values have not been specified "
246
246
" OR "
247
- " a kernel argument declared to be a pointer to a type"
248
- " does not point to a named address space" ,
247
+ " a kernel argument declared to be a pointer to a type." ,
249
248
PI_INVALID_KERNEL_ARGS);
250
249
251
250
case PI_INVALID_WORK_ITEM_SIZE:
@@ -270,10 +269,16 @@ bool handleError(pi_result Error, const device_impl &DeviceImpl,
270
269
case PI_MEM_OBJECT_ALLOCATION_FAILURE:
271
270
throw sycl::nd_range_error (
272
271
" failure to allocate memory for data store associated with image"
273
- " or "
274
- " buffer objects specified as arguments to kernel" ,
272
+ " or buffer objects specified as arguments to kernel" ,
275
273
PI_MEM_OBJECT_ALLOCATION_FAILURE);
276
274
275
+ case PI_INVALID_IMAGE_SIZE:
276
+ throw sycl::nd_range_error (
277
+ " image object is specified as an argument value and the image "
278
+ " dimensions (image width, height, specified or compute row and/or "
279
+ " slice pitch) are not supported by device associated with queue" ,
280
+ PI_INVALID_IMAGE_SIZE);
281
+
277
282
// TODO: Handle other error codes
278
283
279
284
default :
0 commit comments