SWDEV-343921 - added Max stack size

Change-Id: I5c1a088e05215ca951afc9d92f8d298c5e3a65f1
Este cometimento está contido em:
Sarbojit Sarkar criou e Sarbojit Sarkar cometeu 2022-08-02 07:13:18 -04:00
1 ascendente 2eeb00ba8a
cometimento 27a08a132f
3 ficheiros modificados
+7 -8

Não existem ficheiros que correspondam à sua pesquisa

+1 -2
Ver ficheiro
@@ -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;