SWDEV-418855 - Limits the 'no GWS' approach to gfx940, gfx11and gfx12

Change-Id: Iab2d34d3142902517124cec7ef3461cf7aa4b98c


[ROCm/clr commit: 7dc78d234d]
Этот коммит содержится в:
Sourabh Betigeri authored and Sourabh Betigeri committed 2023-08-30 23:48:02 -04:00
1 родитель 476e7f7022
Коммит 22f367a172
1 file changed
+3 -3
+3 -3
Просмотреть файл
@@ -101,7 +101,6 @@ Settings::Settings() {
bool Settings::create(bool fullProfile, uint32_t gfxipMajor, uint32_t gfxipMinor,
uint32_t gfxStepping, bool enableXNACK, bool coop_groups) {
customHostAllocator_ = false;
uint32_t gcnArch = gfxipMajor * 100 + gfxipMinor * 10 + gfxStepping;
if (fullProfile) {
pinnedXferSize_ = 0;
@@ -156,7 +155,7 @@ bool Settings::create(bool fullProfile, uint32_t gfxipMajor, uint32_t gfxipMinor
enableExtension(ClAmdFp64);
}
if (gcnArch == 910) {
if (gfxipMajor == 9 && gfxipMinor == 1 && gfxStepping == 0) {
// Barrier Value packet is only supported on MI200 for now
barrier_value_packet_ = true;
}
@@ -174,7 +173,8 @@ bool Settings::create(bool fullProfile, uint32_t gfxipMajor, uint32_t gfxipMinor
enableWave32Mode_ = GPU_ENABLE_WAVE32_MODE;
}
if (gcnArch >= 940) {
// No GWS init kernel necessary for these archs
if ((gfxipMajor == 9 && gfxipMinor == 4) || gfxipMajor >= 11) {
coop_sync_ = true;
}