P4 to Git Change 1122235 by xcui@merged_opencl_jxcwin on 2015/02/13 17:28:52

EPR #413091 - move commit svm host memory into allocmaptarget and added hostmemref as the backing store  for multiple gpu cases

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_memobj.cpp#73 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#280 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#118 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#115 edit
Этот коммит содержится в:
foreman
2015-02-13 17:49:06 -05:00
родитель fc11110f0f
Коммит 1c7ab5d312
2 изменённых файлов: 0 добавлений и 6 удалений
-5
Просмотреть файл
@@ -3221,11 +3221,6 @@ RUNTIME_ENTRY_RET(void *, clEnqueueMapBuffer, (
*not_null(errcode_ret) = CL_MEM_OBJECT_ALLOCATION_FAILURE;
return NULL;
}
// Make sure the svm host memory is commited if the buffer is SVM buffer
void* svmPtr = srcBuffer->getSvmPtr();
if (NULL != svmPtr) {
srcBuffer->commitSvmMemory();
}
if (srcBuffer->getMemFlags() & CL_MEM_USE_PERSISTENT_MEM_AMD) {
// [Windows VidMM restriction]
-1
Просмотреть файл
@@ -756,7 +756,6 @@ RUNTIME_ENTRY(cl_int, clEnqueueSVMMap, (
return CL_INVALID_CONTEXT;
}
svmMem->commitSvmMemory();
offset = static_cast<address>(svm_ptr) - static_cast<address>(svmMem->getSvmPtr());
if (offset < 0 || offset + size > svmMem->getSize()) {
LogWarning("wrong svm address ");