SWDEV-455254 - Add kernel arg optimization

Add kernel arguments optimization into blit path.
Enabled by default on MI300.

Change-Id: I2694a81b90d48ad07d86dfe4c0c64fe187bada8e
This commit is contained in:
German Andryeyev committed 2024-04-10 18:08:37 -04:00
1 parent 2b8634bada
commit f0c7ecf617
4 files changed
+15 -4

No files matched your search

+5
View File
@@ -170,6 +170,7 @@ bool Settings::create(bool fullProfile, uint32_t gfxipMajor, uint32_t gfxipMinor
if (gfxipMajor == 9 && gfxipMinor == 4 &&
(gfxStepping == 0 || gfxStepping == 1 || gfxStepping == 2)) {
device_kernel_args_ = HIP_FORCE_DEV_KERNARG && device_kernel_args;
kernel_arg_opt_ = true;
}
if (gfxipMajor >= 10) {
@@ -237,6 +238,10 @@ void Settings::override() {
if (!flagIsDefault(HIP_FORCE_DEV_KERNARG)) {
device_kernel_args_ = HIP_FORCE_DEV_KERNARG;
}
if (!flagIsDefault(DEBUG_CLR_BLIT_KERNARG_OPT)) {
kernel_arg_opt_ = DEBUG_CLR_BLIT_KERNARG_OPT;
}
}
} // namespace roc