P4 to Git Change 1458035 by wchau@wchau_OCL_boltzmann on 2017/09/12 16:31:24
SWDEV-130808 - set the local sizes to preferredWorkGroupSize_ when clEnqueueNDRange is not given and the kernel does not have required workgroup sizes. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#320 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#411 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#36 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#56 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#26 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#43 edit
This commit is contained in:
@@ -142,7 +142,7 @@ void VirtualGPU::DmaFlushMgmt::findSplitSize(const Device& dev, uint64_t threads
|
||||
uint64_t workload = threads * instructions;
|
||||
if (maxDispatchWorkload_ < workload) {
|
||||
dispatchSplitSize_ = static_cast<uint>(maxDispatchWorkload_ / instructions);
|
||||
uint fullLoad = dev.info().maxComputeUnits_ * dev.info().maxWorkGroupSize_;
|
||||
uint fullLoad = dev.info().maxComputeUnits_ * dev.info().preferredWorkGroupSize_;
|
||||
if ((dispatchSplitSize_ % fullLoad) != 0) {
|
||||
dispatchSplitSize_ = (dispatchSplitSize_ / fullLoad + 1) * fullLoad;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user