P4 to Git Change 1456841 by wchau@wchau_OCL_boltzmann on 2017/09/08 13:45:27
SWDEV-130808 - Add support of two new queries: CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_AMD, CL_DEVICE_MAX_WORK_GROUP_SIZE_AMD.
- Initialize the "preferredWorkGroupSize_" for CPU device so that CL_MAX_WORK_GROUP_SIZE correctly reports CPU_MAX_WORKGROUP_SIZE.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.cpp#281 edit
[ROCm/clr commit: 00e913da6d]
This commit is contained in:
@@ -90,6 +90,7 @@ bool Device::init() {
|
||||
info.maxWorkItemSizes_[0] = info.maxWorkGroupSize_;
|
||||
info.maxWorkItemSizes_[1] = info.maxWorkGroupSize_;
|
||||
info.maxWorkItemSizes_[2] = info.maxWorkGroupSize_;
|
||||
info.preferredWorkGroupSize_ = CPU_MAX_WORKGROUP_SIZE;
|
||||
|
||||
info.addressBits_ = LP64_SWITCH(32, 64);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user