1 / 11

Objective

ECE408 / CS483 Applied Parallel Programming Lecture 24: Application Case Study – Electrostatic Potential Calculation Part 2. Objective. To learn how to apply parallel programming techniques to an application Thread coarsening for more work efficiency

ady
Download Presentation

Objective

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. ECE408 / CS483Applied Parallel ProgrammingLecture 24: Application Case Study – Electrostatic Potential CalculationPart 2

  2. Objective • To learn how to apply parallel programming techniques to an application • Thread coarsening for more work efficiency • Data structure padding for reduced divergence • Memory access locality and pre-computation techniques

  3. Outline of A Fast Sequential Code for all z { for all atoms {pre-compute dz2 } for all y { for all atoms {pre-compute dy2 (+ dz2) } for all x { for all atoms { compute contribution to current x,y,z point using pre-computed dy2 + dz2 } } } }

  4. More Thoughts on Fast Sequential Code • Need temporary arrays for pre-calculated dz2 and dy2 + dz2 values • So, why does this code has better cache behaior on CPUs?

  5. Reuse Distance Calculation for More Computation Efficiency

  6. Thread Coarsening

  7. A Compute Efficient Gather Kernel

  8. Thread Coarsening for More Computation Efficiency

  9. Performance Comparison

  10. More Work is Needed to Feed a GPU

  11. Any Questions?

More Related