File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -399,4 +399,16 @@ _CLC_OVERLOAD _CLC_DEF double erf(double y) {
399
399
400
400
_CLC_UNARY_VECTORIZE (_CLC_OVERLOAD _CLC_DEF , double , erf , double );
401
401
402
+ #ifdef cl_khr_fp16
403
+
404
+ #pragma OPENCL EXTENSION cl_khr_fp16 : enable
405
+
406
+ _CLC_OVERLOAD _CLC_DEF half erf (half h ) {
407
+ return (half )erf ((float )h );
408
+ }
409
+
410
+ _CLC_UNARY_VECTORIZE (_CLC_OVERLOAD _CLC_DEF , half , erf , half );
411
+
412
+ #endif
413
+
402
414
#endif
Original file line number Diff line number Diff line change @@ -410,4 +410,16 @@ _CLC_OVERLOAD _CLC_DEF double erfc(double x) {
410
410
411
411
_CLC_UNARY_VECTORIZE (_CLC_OVERLOAD _CLC_DEF , double , erfc , double );
412
412
413
+ #ifdef cl_khr_fp16
414
+
415
+ #pragma OPENCL EXTENSION cl_khr_fp16 : enable
416
+
417
+ _CLC_OVERLOAD _CLC_DEF half erfc (half h ) {
418
+ return (half )erfc ((float )h );
419
+ }
420
+
421
+ _CLC_UNARY_VECTORIZE (_CLC_OVERLOAD _CLC_DEF , half , erfc , half );
422
+
423
+ #endif
424
+
413
425
#endif
You can’t perform that action at this time.
0 commit comments