Commit 2e960569 authored by Grzegorz Kluczek's avatar Grzegorz Kluczek Committed by gbsbuild

Changes in calculating mempool element count

Change-Id: Ice2a69640f685ec53e184c5c670b2d011bfb4c83
parent ca5ea2e2
......@@ -256,13 +256,12 @@ void InlineLocalsResolution::collectInfoOnSharedLocalMem(Module& M)
unsigned int numElements = numAdditionalElements;
if (allocAllWorkgroups)
{
if (platform.ThreadCount != 0)
if (platform.ThreadCount > 448)
{
numElements += platform.ThreadCount;
}
else
{
//workaround for cloc offline compiler, which currently does not pass any platform data
numElements += 448;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment