[callables] Overwriting dtypes at a call-site should be illegal
Open
- Dominant language
- Python
- Stars
- 636
- Forks
- 81
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 7
Description
The following translation unit:
```python
alpha_set = lp.make_function(
"{[i]: 0<=i<10}",
"""
y[i] = alpha
""", [lp.ValueArg("alpha", dtype=np.float64),
...],
name="alpha_set")
knl = lp.make_kernel(
"{[i]: 0<=i<10}",
"""
<>tmp = 3.14f
[i]: Y[i] = alpha_set(tmp)
""")
```
changes the `dtype` of `alpha` in the kernel `alpha_set` to `np.float32`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.