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
这个提交包含在:
foreman 于 2017-02-24 16:47:02 -05:00 提交
1 父节点 33fde89442
当前提交 dff4d3c84a
1 个文件已更改
+1 -1
+1 -1
查看文件
@@ -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;
}
}