feature: cl_khr_external_memory - return platform info

- return supported memory handle types when querying
CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR

Related-To: NEO-6757

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2023-07-18 11:54:25 +00:00
committed by Compute-Runtime-Automation
parent 18ead77e78
commit 776917159d
5 changed files with 95 additions and 0 deletions

View File

@@ -103,6 +103,11 @@ cl_int Platform::getInfo(cl_platform_info paramName,
case CL_PLATFORM_ICD_SUFFIX_KHR:
param = &platformInfo->icdSuffixKhr;
break;
case CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR: {
paramSize = sizeof(this->clDevices[0]->getDeviceInfo().externalMemorySharing);
getInfoStatus = GetInfo::getInfo(paramValue, paramValueSize, &this->clDevices[0]->getDeviceInfo().externalMemorySharing, paramSize);
break;
}
default:
break;
}