From e1d2194b75c2682bda6bfe45991e00a37e0771fd Mon Sep 17 00:00:00 2001 From: "Xie, Jiabao(Jimbo)" Date: Wed, 7 May 2025 15:44:49 -0400 Subject: [PATCH] SWDEV-528913 - support gfx950 in rocsetting (#217) * SWDEV-528913 - support gfx950 in rocsetting --------- Co-authored-by: Jimbo Xie [ROCm/clr commit: a320a3f2146ecebbf4725b72802a79bc2df7379b] --- projects/clr/rocclr/device/rocm/rocsettings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/clr/rocclr/device/rocm/rocsettings.cpp b/projects/clr/rocclr/device/rocm/rocsettings.cpp index 5ddf853dd3..d53231fdd9 100644 --- a/projects/clr/rocclr/device/rocm/rocsettings.cpp +++ b/projects/clr/rocclr/device/rocm/rocsettings.cpp @@ -163,7 +163,7 @@ bool Settings::create(bool fullProfile, const amd::Isa& isa, } if ((gfxipMajor == 9 && gfxipMinor == 0 && gfxStepping == 10) || - ((gfxipMajor == 9 && gfxipMinor == 4 && + ((gfxipMajor == 9 && gfxipMinor >= 4 && (gfxStepping == 0 || gfxStepping == 1 || gfxStepping == 2)))) { // Enable Barrier Value packet is only for MI2XX/300 barrier_value_packet_ = true; @@ -187,7 +187,7 @@ bool Settings::create(bool fullProfile, const amd::Isa& isa, lcWavefrontSize64_ = !enableWave32Mode_; - if (gfxipMajor > 10 || (gfxipMajor == 9 && gfxipMinor == 4)) { + if (gfxipMajor > 10 || (gfxipMajor == 9 && gfxipMinor >= 4)) { gwsInitSupported_ = false; } @@ -241,7 +241,7 @@ void Settings::setKernelArgImpl(const amd::Isa& isa, bool isXgmi, bool hasValidH const uint32_t gfxipMinor = isa.versionMinor(); const uint32_t gfxStepping = isa.versionStepping(); - const bool isGfx94x = gfxipMajor == 9 && (gfxipMinor == 4 || gfxipMinor == 5) && + const bool isGfx94x = gfxipMajor == 9 && gfxipMinor >= 4 && (gfxStepping == 0 || gfxStepping == 1 || gfxStepping == 2); const bool isGfx90a = (gfxipMajor == 9 && gfxipMinor == 0 && gfxStepping == 10); const bool isPreGfx908 =