SWDEV-343921 - added Max stack size
Change-Id: I5c1a088e05215ca951afc9d92f8d298c5e3a65f1
This commit is contained in:
1 parent
2eeb00ba8a
commit
27a08a132f
3 files changed
+7
-8
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user