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
This commit is contained in:
foreman
2017-09-08 13:58:47 -04:00
parent 703f2f6900
commit 00e913da6d
+1
View File
@@ -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);