SWDEV-343921 - added Max stack size
Change-Id: I5c1a088e05215ca951afc9d92f8d298c5e3a65f1
[ROCm/clr commit: 27a08a132f]
This commit is contained in:
zatwierdzone przez
Sarbojit Sarkar
rodzic
1d2cb0d3e8
commit
a0981a092b
@@ -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