loopy icon indicating copy to clipboard operation
loopy copied to clipboard

OpenCL targets aren't aware of some math built-ins

Open zachjweiner opened this issue 3 years ago • 1 comments

I see the new function interface is much more careful about what's in the namespace (which is great!), but I think a number of the built-in math functions aren't currently registered. I tried to hack in, e.g., round to the lists of functions in target/opencl.py and target/pyopencl.py (e.g., here and here) but it still appeared to be unrecognized. If someone can point me in the right direction, I'd be happy to add the missing built ins.

zachjweiner avatar Jun 22 '21 18:06 zachjweiner

Apparently the nonresolvedness was being cached, so the above actually should work. Will open a PR, then!

zachjweiner avatar Jun 22 '21 18:06 zachjweiner