1 / 15

Cache Efficient Data Structures and Algorithms for d -Dimensional Problems

Cache Efficient Data Structures and Algorithms for d -Dimensional Problems. Judith Hartmann TU München, Institut für Informatik V hartmanj@in.tum.de. Overview. cache hierarchies and data locality discretization by space-filling curve system of stacks measured results concluding remarks.

Download Presentation

Cache Efficient Data Structures and Algorithms for d -Dimensional Problems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cache Efficient Data Structures and Algorithms for d-Dimensional Problems Judith Hartmann TU München, Institut für Informatik V hartmanj@in.tum.de SCCS-Kolloquium

  2. Overview • cache hierarchies and data locality • discretization by space-filling curve • system of stacks • measured results • concluding remarks Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  3. CPU registers L1 data L1 inst L2 cache L3 cache main memory Cache Hierarchy Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  4. Cache Efficiency as Main Objective • algorithm for solving PDEs • modern concepts (finite elements, multigrid, etc.) • cache-efficiency • road to cache-efficiency • spacefilling curve for discretization of the domain • data transport via stack system Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  5. Iterative Construction of the Peano Curve • Leitmotiv L • for each dimension: decomposition of all diagonals Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  6. Important Properties for the Construction of a Stack System • projection property • palindrome property • recursivity in dimension Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  7. Organization of a d-Dimensional Iteration • induced discretizationof the unit square and order for the grid cells • processing of data Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  8. Necessary Properties of a Useful System of Stacks • constant number of stacks • determinsitic data access • dimensional recursivity • self similarity Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  9. Number of Stacks • number of stacks for several dimensionalities • number of i-dimensional stacks for a d-dimensional iteration • total number of lower dimensional stacks: 3d-1 Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  10. Stacks and Geometrical Boundary Elements • matching of i-dimensional stack and i-dimensional boundary element of the unit cube • ternary encoding of geometrical boundary elements Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  11. Data Access • parameters for each grid point • status: determination of the sort of the stack • stack numbers: which stack of this sort • basic stack numbers • mechanism of inheritance Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  12. Necessary Properties of a Useful System of Stacks • constant number of stacks • determinsitic data access • dimensional recursivity • self similarity Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  13. Hardware PerformancePoisson Equation on the Unit Cube • cache-hit-rates > 99,9 % • processing time per degree of freedom • decreases with increasing grid size • is augmnted by a factor ~2.7 for each dimension • processing time per degree of freedom • unpenalized disc-usage possible Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  14. AdaptivityPoisson Equation on a Sphere • no loss of cache-efficiency:cache-hit-rates > 99,9 % • locally refined grids: • computing time improves (if appropriately approximated) • no loss of cache-efficiency Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

  15. Conclusion & Further Developments • method for solving d-dimensional PDEs • modern numerical methods • high cache-efficiency • complicated geometrics • further developements: • potential for parallelization • general system of PDEs, Stokes, Navier-Stokes, etc. • potential for solving time-dependent PDEs in 3 space dimensions Cache Efficient Data Structures and Algorithms for d-Dimensional Problems

More Related