P4 to Git Change 1078871 by gandryey@gera-dev-w7 on 2014/09/19 14:45:35

ECR #304775 - Add extra CP write operation for the resource warm-up
	- Vidmm will page in the constant buffers before the actual usage

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#192 edit


[ROCm/clr commit: 2e23538a01]
This commit is contained in:
foreman
2014-09-19 14:59:34 -04:00
parent 4dc4a5238f
commit 2336e8d5bc
@@ -1915,8 +1915,12 @@ void
Resource::warmUpRenames(VirtualGPU& gpu)
{
for (uint i = 0; i < dev().settings().maxRenames_; ++i) {
const bool force = true;
rename(gpu, force);
uint dummy = 0;
const bool NoWait = false;
// Write 0 for the buffer paging by VidMM
writeRawData(gpu, sizeof(dummy), &dummy, NoWait);
const bool Force = true;
rename(gpu, Force);
}
}