P4 to Git Change 1168292 by gandryey@gera-w8 on 2015/07/07 14:29:14

ECR #304775 - Fix a crash in memorybandwidth test
	-  Remove a pinned mem object from the list only if we need a free slot.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#367 edit


[ROCm/clr commit: 75b2321608]
Tá an tiomantas seo le fáil i:
foreman
2015-07-07 14:34:52 -04:00
tuismitheoir 0a6ccabe76
tiomantas 95962bac8a
@@ -239,12 +239,12 @@ VirtualGPU::releaseXferWrite()
void
VirtualGPU::addPinnedMem(amd::Memory* mem)
{
if (pinnedMems_.size() > 7) {
pinnedMems_.front()->release();
pinnedMems_.pop_front();
}
if (NULL == findPinnedMem(mem->getHostMem(), mem->getSize())) {
if (pinnedMems_.size() > 7) {
pinnedMems_.front()->release();
pinnedMems_.pop_front();
}
// Start operation, since we should release mem object
flushDMA(getGpuEvent(dev().getGpuMemory(mem))->engineId_);