mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:20:26 +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
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "opencl/source/cl_device/cl_device.h"
|
||||
|
||||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
#include "shared/source/device/device.h"
|
||||
#include "shared/source/device/sub_device.h"
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
@@ -179,4 +180,11 @@ DeviceBitfield ClDevice::getDeviceBitfield() const {
|
||||
return device.getDeviceBitfield();
|
||||
}
|
||||
|
||||
bool ClDevice::isDeviceEnqueueSupported() const {
|
||||
if (DebugManager.flags.DisableDeviceEnqueue.get()) {
|
||||
return false;
|
||||
}
|
||||
return device.getHardwareInfo().capabilityTable.supportsDeviceEnqueue;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user