P4 to Git Change 1228628 by wchau@wchau_WIN_OCL_HSA on 2016/01/18 17:02:40
SWDEV-79308 - Resubmit of CL1228064 with restriction of mininum scratch buffer size of 64K if a scratch buffer is needed.
Reduce the total scratch buffer size by a factor of 4, which in effect reducing the max. scratch waves from 32 to 8, to avoid the required total scratch buffer size exceeds the available local memory.
Made sure the scratch buffer size is aligned with 64K boundary
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#235 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#156 edit
[ROCm/clr commit: db94c3fb66]
这个提交包含在:
1 父节点
02b8d92570
当前提交
b13287e477
2 个文件已更改
+18
-3
没有与搜索条件相匹配的文件
@@ -1937,8 +1937,8 @@ ResourceCache::findCalResource(Resource::CalResourceDesc* desc)
|
||||
GslResourceReference* ref = NULL;
|
||||
size_t size = getResourceSize(desc);
|
||||
|
||||
// Early exit if resource is too big
|
||||
if (size >= cacheSizeLimit_ || desc->skipRsrcCache_) {
|
||||
// Early exit if resource is too big or it is for scratch buffer
|
||||
if (size >= cacheSizeLimit_ || desc->skipRsrcCache_ || desc->scratch_) {
|
||||
//! \note we may need to free the cache here to reduce memory pressure
|
||||
return ref;
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户