Typical Parallel Bugs (2)
Problem: not saving values from parallel regions
Symptom: bad answers, core dump
Fix: transfer from local into shared
Problem: unsynchronized access
Symptom: bad answers
Fix: critical section / barrier / local accumulation
Problem: numerical inconsistency
Symptom: run-to-run variation in answers
Fix: different scheduling mechanisms / ordered sections / consistent parallel reductions