hcc
hcc copied to clipboard
Introduce KMHACKISA environment variable for ISA-level code injection.
When used with -fno-gpu-rdc, this allows applications to inject ISA into
object files. This flag is used for kernel developers to tweak ISA before an
optimization can be devised in the compiler.
The feature is developed for @asroy and @zjing14 . Need verification from their applications first.
@scchan , @asroy and @zjing14 both could apply the patch onto their projects and do ISA-level tweaking now. Removing [DO NOT MERGE] tag now.
- @jehandadkhan for awareness.
with this PR you are able to inject additional or replace ISA coming out from the compiler.
@scchan This feature is gradually getting picked up by kernel developers in MIOpen team. Wondering could you give this PR another go? Thanks.
@whchung I'd like to get PR1245 first if possible since it's higher priority. This PR will probably have be updated to adapt to those changes.