[Libclc-dev] [PATCH 1/1] math: Fix log2 vectorization on non-fp64 hw

Tom Stellard via Libclc-dev libclc-dev at lists.llvm.org
Tue Feb 9 13:04:17 PST 2016


On Mon, Feb 08, 2016 at 02:39:49PM -0500, Jan Vesely via Libclc-dev wrote:
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>

LGTM.

> ---
>  generic/lib/math/log2.cl | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/generic/lib/math/log2.cl b/generic/lib/math/log2.cl
> index df6eeb2..8776a80 100644
> --- a/generic/lib/math/log2.cl
> +++ b/generic/lib/math/log2.cl
> @@ -34,4 +34,6 @@
>  
>  _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, log2, float);
>  
> +#ifdef cl_khr_fp64
>  _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, log2, double);
> +#endif // cl_khr_fp64
> -- 
> 2.5.0
> 
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/libclc-dev


More information about the Libclc-dev mailing list