[Libclc-dev] [PATCH 1/2] Add rounding mode suffixes to conversion declarations

Peter Collingbourne peter at pcc.me.uk
Sun Oct 7 20:09:54 PDT 2012


On Thu, Sep 13, 2012 at 08:37:28PM +0000, Tom Stellard wrote:
> From: Tom Stellard <thomas.stellard at amd.com>
> 
> ---
>  generic/include/clc/convert.h | 6 +++++-
>  generic/lib/convert.cl        | 6 +++++-
>  2 files changed, 10 insertions(+), 2 deletions(-)

Hi Tom,

Two problems with this patch:

1) The _rt? functions are only declared if cl_khr_fp64 is not defined.

2) The patch declares functions such as convert_int4_rtz(int4) which are
   not defined by OpenCL, because neither the source nor destination
   type are floating point.

Thanks,
-- 
Peter




More information about the Libclc-dev mailing list