P4 to Git Change 1118593 by xcui@merged_opencl_jxcwin on 2015/02/04 12:10:27

EPR #413091 - fixed a bug in the gpukenerl processing, the svm memory object of a kernel argument also needs to be updated writer couting for mGPU support, if the memory object is writable for the kernel.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#276 edit


[ROCm/clr commit: c725bca7c1]
This commit is contained in:
foreman
2015-02-04 12:26:13 -05:00
parent 96f5e82fab
commit 43e8729e46
@@ -3888,6 +3888,9 @@ HSAILKernel::loadArguments(
if (mem != NULL) {
gpuMem = dev().getGpuMemory(mem);
gpuMem->wait(gpu, WaitOnBusyEngine);
if ((mem->getMemFlags() & CL_MEM_READ_ONLY) == 0) {
mem->signalWrite(&dev());
}
memList.push_back(gpuMem);
}
// If finegrainsystem is present then the pointer can be malloced by the app and