P4 to Git Change 1377864 by todli@todli-win-opencl-kv1 on 2017/02/24 16:10:12

SWDEV-107271 - For APU system, when allocating USWC with enough USWC reported and the allocation fails, we should return false instead of looping forever.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#12 edit


[ROCm/clr commit: dff4d3c84a]
Dieser Commit ist enthalten in:
foreman
2017-02-24 16:47:02 -05:00
Ursprung eac85bc28e
Commit 0617de6d84
@@ -153,7 +153,7 @@ Memory::create(
memType = RemoteUSWC;
}
else if (dev().settings().apuSystem_ && memoryType() == RemoteUSWC) {
if (size() > (freeMemory[0] * Ki)) {
if (size() > (freeMemory[0] * Ki) || allocAttempt >= 2) {
break;
}
}