[PyOpenCL execution]: Scalar argument always returned as pyopencl arrays
Open
- Dominant language
- Python
- Stars
- 636
- Forks
- 81
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 7
Description
Minimal reproducer:
```python
knl = lp.make_kernel(
"{:}",
"""
y = 2*x
""")
evt, (out,) = knl(cq, x=np.asarray(3.0, dtype=float))
print(repr(out)) # prints: cl.Array(6.)
```
However if 'y' was anything other than array with shape `()` we return a numpy array. Is this a bug?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.