inducer / inducer/loopy

Loopy's host-side shape inference cannot solve system of equations

Open
#424 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

```python
knl = lp.make_kernel(
"{[i, j]: 0<=i<(2*n + 3*m + 2) and 0<=j<(6*n + 4*m + 3)}",
"""
out = sum([i, j], A[i, j])
""")

knl(cq, A=np.random.randn(20, 37))
```

fails with
```
File "", line 52, in invoke_loopy_kernel_loopy_kernel
TypeError: value argument 'm' was not given and could not be automatically determined
```

Loopy couldn't infer that `n=3, m=4` corresponds from A's shape.

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.