Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve conversion of Math functions in user kernels #17

Open
wcmjunior opened this issue Jun 9, 2016 · 0 comments
Open

Improve conversion of Math functions in user kernels #17

wcmjunior opened this issue Jun 9, 2016 · 0 comments
Labels
Milestone

Comments

@wcmjunior
Copy link
Member

User kernels are currently being transported to C kernel files without any code analysis. The compiler simply rename variables and replace math functions' names. In this sense, Math.abs function is replaced to "fabs", which is a C version for getting absolute values from float variables. This will cause RenderScript and OpenCL compilation errors in C files once the user deals with Math.abs and integer numbers in Java, since the equivalent function in C is "abs".

@wcmjunior wcmjunior added the bug label Jun 9, 2016
@wcmjunior wcmjunior modified the milestones: version 0.4, version 0.5 Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant