diff --git a/projects/clr/rocclr/device/pal/paldevice.cpp b/projects/clr/rocclr/device/pal/paldevice.cpp index c50d80ed3a..4192752f34 100644 --- a/projects/clr/rocclr/device/pal/paldevice.cpp +++ b/projects/clr/rocclr/device/pal/paldevice.cpp @@ -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)) { diff --git a/projects/clr/rocclr/device/rocm/rocdevice.cpp b/projects/clr/rocclr/device/rocm/rocdevice.cpp index 69bec0a764..5acaab4a0e 100644 --- a/projects/clr/rocclr/device/rocm/rocdevice.cpp +++ b/projects/clr/rocclr/device/rocm/rocdevice.cpp @@ -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;