diff options
Diffstat (limited to 'libclc/amdgpu/lib/math/nextafter.cl')
-rw-r--r-- | libclc/amdgpu/lib/math/nextafter.cl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libclc/amdgpu/lib/math/nextafter.cl b/libclc/amdgpu/lib/math/nextafter.cl index 5b4521d21c26..b290da0e417d 100644 --- a/libclc/amdgpu/lib/math/nextafter.cl +++ b/libclc/amdgpu/lib/math/nextafter.cl @@ -8,3 +8,8 @@ _CLC_DEFINE_BINARY_BUILTIN(float, nextafter, __clc_nextafter, float, float) #pragma OPENCL EXTENSION cl_khr_fp64 : enable _CLC_DEFINE_BINARY_BUILTIN(double, nextafter, __clc_nextafter, double, double) #endif + +#ifdef cl_khr_fp16 +#pragma OPENCL EXTENSION cl_khr_fp16 : enable +_CLC_DEFINE_BINARY_BUILTIN(half, nextafter, __clc_nextafter, half, half) +#endif |