mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Add debug flag to override device enqueue support
Enabling the new debug flag will disable support of device enqueue feature. Related-To: NEO-4368 Change-Id: Icd17b44986bb682873364a2603633b7e44723a06 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
bc9e2e1c6a
commit
22f9893495
@@ -243,10 +243,19 @@ void ClDevice::initializeCaps() {
|
||||
deviceInfo.memBaseAddressAlign = 1024;
|
||||
deviceInfo.minDataTypeAlignSize = 128;
|
||||
|
||||
deviceInfo.maxOnDeviceEvents = 1024;
|
||||
deviceInfo.queueOnDeviceMaxSize = 64 * MB;
|
||||
deviceInfo.queueOnDevicePreferredSize = 128 * KB;
|
||||
deviceInfo.queueOnDeviceProperties = CL_QUEUE_PROFILING_ENABLE | CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE;
|
||||
if (isDeviceEnqueueSupported()) {
|
||||
deviceInfo.maxOnDeviceQueues = 1;
|
||||
deviceInfo.maxOnDeviceEvents = 1024;
|
||||
deviceInfo.queueOnDeviceMaxSize = 64 * MB;
|
||||
deviceInfo.queueOnDevicePreferredSize = 128 * KB;
|
||||
deviceInfo.queueOnDeviceProperties = CL_QUEUE_PROFILING_ENABLE | CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE;
|
||||
} else {
|
||||
deviceInfo.maxOnDeviceQueues = 0;
|
||||
deviceInfo.maxOnDeviceEvents = 0;
|
||||
deviceInfo.queueOnDeviceMaxSize = 0;
|
||||
deviceInfo.queueOnDevicePreferredSize = 0;
|
||||
deviceInfo.queueOnDeviceProperties = 0;
|
||||
}
|
||||
|
||||
deviceInfo.preferredInteropUserSync = 1u;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user