mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Before this change, `max_error` was initialized to `0.0f`, which caused issues when the actual maximum `error` was also `0.0f`. In such cases, `max_val` would never be updated, leading to misleading test output showing `NaN` values: ``` degrees: Max error 0.000000 ulps at 0: *nan vs 0x1.9802318e8abefp+21 ``` This fix initializes `max_error` to `-INFINITY` to ensure `max_val` is always updated at least once. Additionally, the log output now includes the input value for better debugging: ``` degrees: Max error 0.000000 ulps at 0, input 0x1.c7bffcp+15: *0x1.9802318e8abefp+21 vs 0x1.9802318e8abefp+21 ``` This makes the test output more informative and eliminates confusing `NaN` values in the summary.