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
[ROCm/clr commit: ad2c1e899a]
This commit is contained in:
@@ -381,6 +381,10 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
|
||||
info_.singleFPConfig_ |= CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT;
|
||||
}
|
||||
|
||||
if (settings().checkExtension(ClKhrFp16)) {
|
||||
info_.halfFPConfig_ = info_.singleFPConfig_;
|
||||
}
|
||||
|
||||
info_.globalMemCacheLineSize_ = settings().cacheLineSize_;
|
||||
info_.globalMemCacheSize_ = settings().cacheSize_;
|
||||
if ((settings().cacheLineSize_ != 0) || (settings().cacheSize_ != 0)) {
|
||||
|
||||
@@ -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