mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Add ClDevice::isOcl21Conformant function
Do not report support of OpenCl C 2.0 if device is not OpenCL 2.1 conformant. Related-To: NEO-4368 Change-Id: I076d539506760953cc28eed39ff5e7585630df51 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
0c9c55cd17
commit
c5f3fe5987
@@ -88,6 +88,12 @@ unique_ptr_if_unused<ClDevice> ClDevice::decRefInternal() {
|
||||
return pParentDevice->decRefInternal();
|
||||
}
|
||||
|
||||
bool ClDevice::isOcl21Conformant() const {
|
||||
auto &hwInfo = device.getHardwareInfo();
|
||||
return (hwInfo.capabilityTable.supportsOcl21Features && hwInfo.capabilityTable.supportsDeviceEnqueue &&
|
||||
hwInfo.capabilityTable.supportsPipes && hwInfo.capabilityTable.supportsIndependentForwardProgress);
|
||||
}
|
||||
|
||||
void ClDevice::allocateSyncBufferHandler() {
|
||||
TakeOwnershipWrapper<ClDevice> lock(*this);
|
||||
if (syncBufferHandler.get() == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user