P4 to Git Change 1338972 by scharupa@scharupa_temp on 2016/11/09 16:33:58
SWDEV-95488 - Limiting max cap Context on ROCm, it is limited to 100 Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#204 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#279 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#25 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#7 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#6 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#16 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#4 edit
This commit is contained in:
@@ -52,6 +52,8 @@ Settings::Settings()
|
||||
partialDispatch = getenv("OPENCL_DISABLE_PARTIAL_DISPATCH");
|
||||
enablePartialDispatch_ = (partialDispatch) ? false : true;
|
||||
partialDispatch_ = (partialDispatch) ? false : true;
|
||||
commandQueues_ = 100 //!< Field value set to maximum number
|
||||
//!< concurrent Virtual GPUs for ROCm backend
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -97,6 +99,11 @@ Settings::create(bool doublePrecision)
|
||||
void
|
||||
Settings::override()
|
||||
{
|
||||
if (!flagIsDefault(GPU_MAX_COMMAND_QUEUES)) {
|
||||
commandQueues_ = GPU_MAX_COMMAND_QUEUES;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} // namespace roc
|
||||
|
||||
Reference in New Issue
Block a user