P4 to Git Change 1113301 by gandryey@gera-dev-w7 on 2015/01/20 12:25:37
ECR #304775 - Add remote alloc check for direct host access optimization. - If runtime forces allocations into remote memory, then AHP check won't cover normal allocations. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#115 edit
Этот коммит содержится в:
@@ -210,11 +210,14 @@ Memory::create(
|
||||
reinterpret_cast<Resource::ViewParams*>(params);
|
||||
// Check if parent was allocated in system memory
|
||||
if ((view->resource_->memoryType() == Resource::Pinned) ||
|
||||
// @todo Enable unconditional optimization for remote memory
|
||||
(((view->resource_->memoryType() == Resource::Remote) ||
|
||||
(view->resource_->memoryType() == Resource::RemoteUSWC)) &&
|
||||
// @todo Enable unconditional optimization for remote memory
|
||||
// Check for external allocation, to avoid the optimization
|
||||
// for non-VM (double copy) mode
|
||||
(owner() != NULL) &&
|
||||
(owner()->getMemFlags() & CL_MEM_ALLOC_HOST_PTR))) {
|
||||
((owner()->getMemFlags() & CL_MEM_ALLOC_HOST_PTR) ||
|
||||
dev().settings().remoteAlloc_))) {
|
||||
// Marks memory object for direct GPU access to the host memory
|
||||
flags_ |= HostMemoryDirectAccess;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user