commit | 3bcc9935c5c2d447a91d5accbcacbf8382dbcba8 | [log] [tgz] |
---|---|---|
author | Nikhil Joshi <nikhilj@nvidia.com> | Wed May 29 15:38:45 2019 +0530 |
committer | Kévin Petit <kevin.petit@arm.com> | Wed May 29 11:08:45 2019 +0100 |
tree | 090dba8250289c68431ed304c5e98e3ef1c0e7df | |
parent | 51db6e87cfec4ec767c680628b7f218f06b06080 [diff] |
Fix test_host_queue_order not to rely on bit accurate float ops (#295) Currently, test_host_queue_order relies on bit accurate float ops. It expects expects that sqrt((float)i * i) == i. This is not always true due to floating point precision limitations. The test does not really need the sqrt operation and it can be removed instead of trying to correct the floating point check. Replace problematic float operation with constant value of 1.