Re: Issue with trigonometric functions
Posted by
Michael Bien on
Oct 12, 2011; 4:32pm
URL: https://forum.jogamp.org/Issue-with-trigonometric-functions-tp3414394p3416212.html
On 10/12/2011 02:26 AM, Abimael [via jogamp] wrote:
> Hi
> I am experiencing some issues with sin , cos functions .. The workaround is
> use native_sin and native_cos.
> But I have issue with acos as well.
> And there is no workaround.
>
> There is no error message, but I see that the OPENCL just does not execute
> the line .
> I just realized the issues when I got values that I really do not expect.
> Them I started a very boring "debug" steps : write one of the cell in the
> buffer with a value that I previous know, run the opencl program,
> set another buffer cell with a trigonometric result (ie. acos(alpha) ,
> check results ..
> I realized that acos does not work properly.
> I know that the argument should be in radians .
>
> Does anybody have the same or similar issues ?
>
> As I did a lot of changes, I really do not recall if the code had worked
> previsously.. I guess that it worked , but I am not sure.. So , I decided
> post a message here to share and hear from others ..
> Thank you .. ANy comment and help is welcome .
> Regards
>
hi,
i haven't had any issues yet with the basic math functions. BTW most
implementations support the printf extension. I often use it for
debugging (small workgroup sizes, 1 if possible).
If you think this is a bug in the CL impl, try to make a small testcase
and post it to the vendor specific forums or directly to the bug tracker.
regards,
michael
--
http://michael-bien.com/