SWDEV-408650 - Report CL_DEVICE_HALF_FP_CONFIG query

If cl_khr_fp16 extension is enabled, then OCL runtime should report CL_DEVICE_HALF_FP_CONFIG.

Change-Id: I7c4ac48387f80bc704a475c57e5b52a462090d1b
This commit is contained in:
German
2023-06-29 15:37:38 -04:00
committed by German Andryeyev
parent 96fb1ac289
commit ad2c1e899a
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -1430,6 +1430,10 @@ bool Device::populateOCLDeviceConstants() {
info_.singleFPConfig_ |= CL_FP_DENORM;
}
if (settings().checkExtension(ClKhrFp16)) {
info_.halfFPConfig_ = info_.singleFPConfig_;
}
info_.preferredPlatformAtomicAlignment_ = 0;
info_.preferredGlobalAtomicAlignment_ = 0;
info_.preferredLocalAtomicAlignment_ = 0;