inducer / inducer/loopy

[callables] Overwriting dtypes at a call-site should be illegal

Open
#442 0 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.