2
0

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]
Este cometimento está contido em:
German
2023-06-29 15:37:38 -04:00
cometido por German Andryeyev
ascendente 247c8ca332
cometimento b55398774b
2 ficheiros modificados com 8 adições e 0 eliminações
+4
Ver ficheiro
@@ -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;