mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Add Debug flags to force Pipe and Device Enqueue support
New flags are ForcePipeSupport and ForceDeviceEnqueueSupport. Flag DisableDeviceEnqueue has been removed. Change-Id: I8794222ee26dc8001af29c45cb9f63381e18e5c4 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
251994149a
commit
5dc3aed5b9
@@ -181,13 +181,16 @@ DeviceBitfield ClDevice::getDeviceBitfield() const {
|
||||
}
|
||||
|
||||
bool ClDevice::isDeviceEnqueueSupported() const {
|
||||
if (DebugManager.flags.DisableDeviceEnqueue.get()) {
|
||||
return false;
|
||||
if (DebugManager.flags.ForceDeviceEnqueueSupport.get() != -1) {
|
||||
return DebugManager.flags.ForceDeviceEnqueueSupport.get();
|
||||
}
|
||||
return device.getHardwareInfo().capabilityTable.supportsDeviceEnqueue;
|
||||
}
|
||||
|
||||
bool ClDevice::arePipesSupported() const {
|
||||
if (DebugManager.flags.ForcePipeSupport.get() != -1) {
|
||||
return DebugManager.flags.ForcePipeSupport.get();
|
||||
}
|
||||
return device.getHardwareInfo().capabilityTable.supportsPipes;
|
||||
}
|
||||
|
||||
|
||||
@@ -260,7 +260,7 @@ void ClDevice::initializeCaps() {
|
||||
deviceInfo.minDataTypeAlignSize = 128;
|
||||
|
||||
deviceInfo.deviceEnqueueSupport = isDeviceEnqueueSupported();
|
||||
if (isDeviceEnqueueSupported() || (enabledClVersion == 21)) {
|
||||
if (isDeviceEnqueueSupported()) {
|
||||
deviceInfo.maxOnDeviceQueues = 1;
|
||||
deviceInfo.maxOnDeviceEvents = 1024;
|
||||
deviceInfo.queueOnDeviceMaxSize = 64 * MB;
|
||||
|
||||
Reference in New Issue
Block a user