OpenMP Issues:Broadcast Common Blocks
common /cc/ cdata
common /dd/ ddata
c initialization
cdata = ...
ddata = ...
C$OMP PARALEL
C$OMP+COPYIN(/cc/, /dd/)
call main_subroutine()
C$END PARALLEL
Issues in Seismic:
At the start of the parallel region is it not yet known which common blocks need to be copied in.
Solution: copy-in all common blocks ® Overhead
Previous slide
Next slide
Back to first slide
View graphic version