If You Find Multiple Candidate Loops
Nested parallel loops are good --
- Current OpenMP implementations won’t do nested loops in parallel -- but you can specify it
- Pick easiest -- or -- pick most parallel code
- Think about locality
- Use IF clause to select best based on dataset
- Plan on doing one across clusters
Non nested parallel loops --
- Consider fusing loops (Impacts locality)
- Execute code between in parallel region