Open chhzh123 opened 2 years ago
Hi,
Right now AutoSA did has a rigid requirement for the coding style. I don't think local variable definition is allowed. That should be the reason that caused the error you encountered.
Okay. Thanks for your reply! Do you have plans to fix this limitation?
It will take some time, probably will not be fixed in a short time. You probably could consider doing some quick fix on your generated code (e.g., replace v7 and v8 with array references) to get around this limitation?
Yeah, since we are working on MLIR which has a strict SSA format, plugging v7
and v8
into the multiplication is impossible at the IR level. Actually, this piece of code has already been simplified manually, the original generated code also introduces an intermediate summation variable for C2
, which I think is even harder to analyze.
Hi,
I just installed AutoSA and tried to make some code generation for systolic arrays. It seems AutoSA has a very strict coding style. I wonder why in the following GEMM example. Only the second can work, but the first way cannot.
If I use the first way, the compiler gives the following error.
Is this a limitation of AutoSA or are there something wrong with my code? Thanks!