SWDEV-305894 - Cooperative groups grid and multi grid sync support for gfx940+

Change-Id: I35d72f1cb50c3a96eee56a612b72d641852b145f
This commit is contained in:
Sourabh Betigeri
2022-11-30 19:59:34 +00:00
committed by Sourabh Betigeri
parent 3296dd8636
commit 5d7f3f9f3c
6 changed files with 51 additions and 22 deletions
+6
View File
@@ -100,6 +100,8 @@ Settings::Settings() {
// Use coarse grain system memory for kernel arguments by default (to keep GPU cache)
fgs_kernel_arg_ = false;
// by default for asics < gfx940 old single grid sync path is followed
coop_sync_ = false;
}
// ================================================================================================
@@ -173,6 +175,10 @@ bool Settings::create(bool fullProfile, uint32_t gfxipMajor, uint32_t gfxipMinor
enableWave32Mode_ = GPU_ENABLE_WAVE32_MODE;
}
if (gfxipMajor >= 9 && gfxipMinor >= 4 && gfxStepping >= 0) {
coop_sync_ = true;
}
lcWavefrontSize64_ = !enableWave32Mode_;
// Override current device settings