We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug OpenCL's compilation fails with error: call to 'max' is ambiguous on kernel
error: call to 'max' is ambiguous
<@ fun (range: Range1D) (buf: int16 clarray) -> buf.[0] <- max buf.[0] 1s @>
which translates to
__kernel void brahmaKernel (__global short * buf) {buf [0] = max (buf [0], 1) ;}
Expected behavior Compilation is successful.
The text was updated successfully, but these errors were encountered:
Looks like we should carefully translate constant literals.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
OpenCL's compilation fails with
error: call to 'max' is ambiguous
on kernelwhich translates to
Expected behavior
Compilation is successful.
The text was updated successfully, but these errors were encountered: