We have several ways of introducing a scalar invariant value into
linalg generic ops (should we limit this somewhat?). This revision
makes sure we handle all of them correctly in the sparse compiler.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Hi Tobias,
As discussed today, this removes the assert on scalar inputs and deals with them correctly in the sparse compiler.
I also added a test that uses all possible ways of introducing scalars into a sparse kernel though the linalg op
(should we restrict this a bit?)
Aart
Comment Actions
We probably continue to support all options on the Linalg side. Capturing values is convenient in passes, scalar parameters are the clean solution IMO, and 0D tensors are a thing in higher level dialects.
At least when looking at the patch, my impression is that there is not a lot of overhead associated to support the different parameter types!