AMDResearch / Riallto

The Riallto Open Source Project from AMD
https://riallto.ai
Other
69 stars 10 forks source link

Enable Kernel fusion #34

Closed mariodruiz closed 5 months ago

mariodruiz commented 5 months ago

Describe the problem solved by the commit

Currently the kernels in the library can only be mapped to a single compute tile.

How is the problem solved?

Adapt kernel code so it can be manually included in a bigger kernel that fuses multiple of them. I added 4 test cases to make sure it works.

In order to avoid changing the kernel code too much, the ".cpp" source file needs to be included.

Are there any risks associated to the change?

No

Is there a documentation impact?

No, an example will be added to discuss later

Checklist

mariodruiz commented 5 months ago

@STFleming my test env was a bit polluted and I had removed things that were necessary. Test should pass now