SWDEV-343921 - added Max stack size

Change-Id: I5c1a088e05215ca951afc9d92f8d298c5e3a65f1
This commit is contained in:
Sarbojit Sarkar authored and Sarbojit Sarkar committed 2022-08-02 07:13:18 -04:00
1 parent 2eeb00ba8a
commit 27a08a132f
3 files changed
+7 -8

No files matched your search

+1 -2
View File
@@ -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;