Skip to content

[VECGEOM-578] Fix an FP comparison that was failing on the GPU

Guilherme Lima requested to merge lima/vg-578 into master

The same FP condition was returning different results in CPU vs. GPU. As a result, a CMS polycone was getting an extra 0-length ZSection on the GPU, which was causing discrepancies in the CPU vs. GPU tracking.

Adding a tolerance parameter to the FP comparison fixes the discrepant results of the FP comparison.

Merge request reports