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
Этот коммит содержится в:
@@ -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]
|
||||
|
||||
@@ -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 ");
|
||||
|
||||
Ссылка в новой задаче
Block a user