P4 to Git Change 1058342 by jatang@jatang-ocl-lnx3 on 2014/07/23 11:50:50
EPR #402935 - Reset Resource::pinOffset_ if gslResource couldn't be created for pinned memory.
When the pinned memory to be created is too large, gslResource couldn't be created, and a local memory will be created instead. If pinOffset_ is NOT reset in this case, it will mess up future copying of the local memory.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#187 edit
[ROCm/clr commit: 1e0a5f64f5]
Этот коммит содержится в:
@@ -577,6 +577,9 @@ Resource::create(MemoryType memType, CreateParams* params, bool heap)
|
||||
if (gslResource != 0) {
|
||||
calRes = true;
|
||||
}
|
||||
else {
|
||||
pinOffset_ = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case View: {
|
||||
|
||||
Ссылка в новой задаче
Block a user