Displaying 3 results from an estimated 3 matches for "__builtin_fpaccuracy".
2011 Sep 07
3
[LLVMdev] Proposal: floating point accuracy metadata (OpenCL related)
...aching a Clang patch which adds this metadata
to single precision floating point division instructions in OpenCL
(which are accurate to 2.5ulp, per OpenCL 1.1 s7.4). I would imagine
that in the future we may want to allow the user to control the level
of accuracy (one idea is that we can provide a __builtin_fpaccuracy
function, which could be used like this):
__builtin_fpaccuracy(x/y, 2) // compute x/y with a maximum error of 2ulp
The backend is not my area of expertise, so I won't venture to say
how difficult it would be to recognise and act on the attribute there.
Alternatives
------------
I am proposi...
2011 Sep 08
1
[LLVMdev] [cfe-dev] Proposal: floating point accuracy metadata (OpenCL related)
...which adds this metadata
> to single precision floating point division instructions in OpenCL
> (which are accurate to 2.5ulp, per OpenCL 1.1 s7.4). I would imagine
> that in the future we may want to allow the user to control the level
> of accuracy (one idea is that we can provide a __builtin_fpaccuracy
> function, which could be used like this):
>
> __builtin_fpaccuracy(x/y, 2) // compute x/y with a maximum error of 2ulp
>
> The backend is not my area of expertise, so I won't venture to say
> how difficult it would be to recognise and act on the attribute there.
>
>...
2011 Sep 08
0
[LLVMdev] [cfe-dev] Proposal: floating point accuracy metadata (OpenCL related)
...adata
> > to single precision floating point division instructions in OpenCL
> > (which are accurate to 2.5ulp, per OpenCL 1.1 s7.4). I would imagine
> > that in the future we may want to allow the user to control the level
> > of accuracy (one idea is that we can provide a __builtin_fpaccuracy
> > function, which could be used like this):
> >
> > __builtin_fpaccuracy(x/y, 2) // compute x/y with a maximum error of
> 2ulp
> >
> > The backend is not my area of expertise, so I won't venture to say
> > how difficult it would be to recognise and act o...