SWDEV-451166 - Disable kernel args for non-XGMI if HDP flush register is invalid

Change-Id: I227e046e2b9cb25476a50240f5d070adbd558f21


[ROCm/clr commit: 96f5c44851]
This commit is contained in:
Ioannis Assiouras
2024-03-13 22:50:58 +00:00
parent ec391d7249
commit b46d3c0f8d
5 changed files with 41 additions and 20 deletions
@@ -102,7 +102,8 @@ Settings::Settings() {
// ================================================================================================
bool Settings::create(bool fullProfile, uint32_t gfxipMajor, uint32_t gfxipMinor,
uint32_t gfxStepping, bool enableXNACK, bool coop_groups) {
uint32_t gfxStepping, bool enableXNACK, bool coop_groups,
bool device_kernel_args) {
customHostAllocator_ = false;
if (fullProfile) {
@@ -168,7 +169,7 @@ bool Settings::create(bool fullProfile, uint32_t gfxipMajor, uint32_t gfxipMinor
// Enable device kernel args for MI300* for now
if (gfxipMajor == 9 && gfxipMinor == 4 &&
(gfxStepping == 0 || gfxStepping == 1 || gfxStepping == 2)) {
device_kernel_args_ = HIP_FORCE_DEV_KERNARG;
device_kernel_args_ = HIP_FORCE_DEV_KERNARG && device_kernel_args;
}
if (gfxipMajor >= 10) {