SWDEV-343921 - added Max stack size

Change-Id: I5c1a088e05215ca951afc9d92f8d298c5e3a65f1


[ROCm/clr commit: 27a08a132f]
This commit is contained in:
Sarbojit Sarkar
2022-07-18 07:37:16 +00:00
zatwierdzone przez Sarbojit Sarkar
rodzic 1d2cb0d3e8
commit a0981a092b
3 zmienionych plików z 7 dodań i 8 usunięć
+1 -2
Wyświetl plik
@@ -737,8 +737,7 @@ bool Device::disableP2P(amd::Device* ptrDev) {
}
bool Device::UpdateStackSize(uint64_t stackSize) {
uint32_t maxMemPerThread = info().localMemSizePerCU_ / info().maxThreadsPerCU_;
if (maxMemPerThread < stackSize) {
if (stackSize > 16 * Ki) {
return false;
}
stack_size_ = stackSize;