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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user