From 00e913da6df6198dedf51bbaf071259b8e1eeea3 Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 8 Sep 2017 13:58:47 -0400 Subject: [PATCH] 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 --- rocclr/runtime/device/cpu/cpudevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rocclr/runtime/device/cpu/cpudevice.cpp b/rocclr/runtime/device/cpu/cpudevice.cpp index 0270c9432b..1c91d24ff6 100644 --- a/rocclr/runtime/device/cpu/cpudevice.cpp +++ b/rocclr/runtime/device/cpu/cpudevice.cpp @@ -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);