P4 to Git Change 1358998 by gandryey@gera-w8 on 2017/01/05 17:36:02

SWDEV-110504 - OpenCL on ROCm: MAX_WORK_GROUP_SIZE is 256 but max work items per dimension is 1024
	- Report Orca stack capabilities. OCL runtime currently can't report 1024 due to possible regressions in the apps.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#32 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#12 edit


[ROCm/clr commit: 0673572c79]
This commit is contained in:
foreman
2017-01-05 17:46:40 -05:00
parent 6b33e1c577
commit 3165cb60e4
2 changed files with 12 additions and 7 deletions
@@ -101,6 +101,11 @@ Settings::create(bool doublePrecision)
void
Settings::override()
{
// Limit reported workgroup size
if (GPU_MAX_WORKGROUP_SIZE != 0) {
maxWorkGroupSize_ = GPU_MAX_WORKGROUP_SIZE;
}
if (!flagIsDefault(GPU_MAX_COMMAND_QUEUES)) {
commandQueues_ = GPU_MAX_COMMAND_QUEUES;
}