Internal:PODM4D predicates

From crtc.cs.odu.edu
Jump to navigation Jump to search

Does fine grain calculations offer a significant advantage in 4D versus 3D (in the context of Delaunay, PODM) ?

Experimental setting

  • Create a benchmark that performs 1000 cavity evaluations of points taken from a uniform distribution (re-use Panos's code for point generation)
  • For the number of elements in a cavity use a normal distribution N(150,30) for 4D and N(50,10) for 3D.
  • For CGAL use n-dimensional predicates, this is the current implementation in PODM4D.
  • For GEO :: PCK (ie Bruno Levy's) predicates, a 4D in-sphere test does not exist.

Data

Time is in seconds
CGAL GEO :: PCK
# threads 3D 4D 3D 4D
1 4.08 19.93 0.0023 0.118
2 4.07 19.85 0.0022 0.0641
3 3.62 16.37 0.0024 0.0463
4 3.09 13.27 0.0024 0.0497

Discussion

  • GEO:: PCK perform significantly better in all cases by almost two orders of magnitude.
  • Looking inside the CGAL n-dimensional predicates reveals that , generic linear algebra methods are used (ie matrix decomposition for accurate and fast determinant evaluations + heap memory allocations), on the other hand GEO :: PCK uses methods similar to Shewchuck's predicates and the optimized version uses no heap memory.
  • For low number of additional cores there is a significant speedup. In the real cavity expansion code, one may be able to explore more concurrency due to the higher latency of memory access.