@@ -298,7 +298,7 @@ void convertReadData(const vec<ChannelType, 4> PixelData,
298298 throw cl::sycl::invalid_parameter_error (
299299 " Datatype of read data - cl_uint4 is incompatible with the "
300300 " image_channel_type of the image." ,
301- PI_INVALID_VALUE );
301+ PI_ERROR_INVALID_VALUE );
302302 }
303303}
304304
@@ -320,7 +320,7 @@ void convertReadData(const vec<ChannelType, 4> PixelData,
320320 throw cl::sycl::invalid_parameter_error (
321321 " Datatype of read data - cl_int4 is incompatible with the "
322322 " image_channel_type of the image." ,
323- PI_INVALID_VALUE );
323+ PI_ERROR_INVALID_VALUE );
324324 }
325325}
326326
@@ -402,7 +402,7 @@ void convertReadData(const vec<ChannelType, 4> PixelData,
402402 throw cl::sycl::invalid_parameter_error (
403403 " Datatype of read data - cl_float4 is incompatible with the "
404404 " image_channel_type of the image." ,
405- PI_INVALID_VALUE );
405+ PI_ERROR_INVALID_VALUE );
406406 case image_channel_type::fp16:
407407 // Host has conversion from float to half with accuracy as required in
408408 // section 8.3.2 OpenCL spec.
@@ -445,7 +445,7 @@ void convertReadData(const vec<ChannelType, 4> PixelData,
445445 throw cl::sycl::feature_not_supported (
446446 " Currently unsupported datatype conversion from image_channel_type "
447447 " to cl_half4." ,
448- PI_INVALID_OPERATION );
448+ PI_ERROR_INVALID_OPERATION );
449449 case image_channel_type::signed_int8:
450450 case image_channel_type::signed_int16:
451451 case image_channel_type::signed_int32:
@@ -458,15 +458,15 @@ void convertReadData(const vec<ChannelType, 4> PixelData,
458458 throw cl::sycl::invalid_parameter_error (
459459 " Datatype to read- cl_half4 is incompatible with the "
460460 " image_channel_type of the image." ,
461- PI_INVALID_VALUE );
461+ PI_ERROR_INVALID_VALUE );
462462 case image_channel_type::fp16:
463463 RetData = PixelData.template convert <cl_half>();
464464 return ;
465465 case image_channel_type::fp32:
466466 throw cl::sycl::invalid_parameter_error (
467467 " Datatype to read - cl_half4 is incompatible with the "
468468 " image_channel_type of the image." ,
469- PI_INVALID_VALUE );
469+ PI_ERROR_INVALID_VALUE );
470470 }
471471 RetData = RetDataFloat.template convert <cl_half>();
472472}
@@ -506,7 +506,7 @@ convertWriteData(const vec<cl_uint, 4> WriteData,
506506 throw cl::sycl::invalid_parameter_error (
507507 " Datatype of data to write - cl_uint4 is incompatible with the "
508508 " image_channel_type of the image." ,
509- PI_INVALID_VALUE );
509+ PI_ERROR_INVALID_VALUE );
510510 }
511511}
512512
@@ -539,7 +539,7 @@ convertWriteData(const vec<cl_int, 4> WriteData,
539539 throw cl::sycl::invalid_parameter_error (
540540 " Datatype of data to write - cl_int4 is incompatible with the "
541541 " image_channel_type of the image." ,
542- PI_INVALID_VALUE );
542+ PI_ERROR_INVALID_VALUE );
543543 }
544544}
545545
@@ -578,7 +578,7 @@ convertWriteData(const vec<cl_float, 4> WriteData,
578578 throw cl::sycl::feature_not_supported (
579579 " Currently unsupported datatype conversion from image_channel_type "
580580 " to cl_float4." ,
581- PI_INVALID_OPERATION );
581+ PI_ERROR_INVALID_OPERATION );
582582 case image_channel_type::unorm_short_555:
583583 // TODO: Missing information in OpenCL spec.
584584 // Check if the below code is correct after the spec is updated.
@@ -621,7 +621,7 @@ convertWriteData(const vec<cl_float, 4> WriteData,
621621 throw cl::sycl::invalid_parameter_error (
622622 " Datatype of data to write - cl_float4 is incompatible with the "
623623 " image_channel_type of the image." ,
624- PI_INVALID_VALUE );
624+ PI_ERROR_INVALID_VALUE );
625625 case image_channel_type::fp16:
626626 // Host has conversion from float to half with accuracy as required in
627627 // section 8.3.2 OpenCL spec.
@@ -656,7 +656,7 @@ convertWriteData(const vec<cl_half, 4> WriteData,
656656 throw cl::sycl::feature_not_supported (
657657 " Currently unsupported datatype conversion from image_channel_type "
658658 " to cl_half4." ,
659- PI_INVALID_OPERATION );
659+ PI_ERROR_INVALID_OPERATION );
660660 case image_channel_type::signed_int8:
661661 case image_channel_type::signed_int16:
662662 case image_channel_type::signed_int32:
@@ -669,14 +669,14 @@ convertWriteData(const vec<cl_half, 4> WriteData,
669669 throw cl::sycl::invalid_parameter_error (
670670 " Datatype of data to write - cl_float4 is incompatible with the "
671671 " image_channel_type of the image." ,
672- PI_INVALID_VALUE );
672+ PI_ERROR_INVALID_VALUE );
673673 case image_channel_type::fp16:
674674 return WriteData.convert <ChannelType>();
675675 case image_channel_type::fp32:
676676 throw cl::sycl::invalid_parameter_error (
677677 " Datatype of data to write - cl_float4 is incompatible with the "
678678 " image_channel_type of the image." ,
679- PI_INVALID_VALUE );
679+ PI_ERROR_INVALID_VALUE );
680680 }
681681}
682682
@@ -1043,7 +1043,7 @@ DataT imageReadSamplerHostImpl(const CoordT &Coords, const sampler &Smpl,
10431043 " Sampler used with unsupported configuration of "
10441044 " mirrored_repeat/repeat filtering mode with unnormalized "
10451045 " coordinates. " ,
1046- PI_INVALID_OPERATION );
1046+ PI_ERROR_INVALID_OPERATION );
10471047 case addressing_mode::clamp_to_edge:
10481048 case addressing_mode::clamp:
10491049 case addressing_mode::none:
0 commit comments