Open dpanfilyonok opened 2 years ago
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.
Looks like we should carefully translate constant literals.
Describe the bug OpenCL's compilation fails with
error: call to 'max' is ambiguous
on kernelwhich translates to
Expected behavior Compilation is successful.