inducer / inducer/loopy

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

Open
#437 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
636
Forks
81
Avg merge
1d 19h
Merged PRs (30d)
7

Description

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](https://www.khronos.org/registry/OpenCL/specs/3.0-unified/html/OpenCL_C.html#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](https://github.com/inducer/loopy/blob/main/loopy/target/pyopencl.py#L80) and [here](https://github.com/inducer/loopy/blob/main/loopy/target/pyopencl.py#L115)) 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.