NERSC logo National Energy Research Scientific Computing Center
  A DOE Office of Science User Facility
  at Lawrence Berkeley National Laboratory
 

FLUSH Directive

!$OMP FLUSH(list) 

The FLUSH directive identifies synchronization points at which the implementation is required to provide a consistent view of memory. The directive must appear at the precise point in the code at which the synchronization is required. The optional list argument consists of a comma-separated list of variables that need to be flushed in order to avoid flushing all variables.

The FLUSH directive is implied for the following directives:

  • BARRIER
  • CRITICAL and END CRITICAL
  • END DO
  • END PARALLEL
  • END SECTIONS
  • END SINGLE
  • ORDERED and END ORDERED

The directive is not implied if NOWAIT is present.


LBNL Home
Page last modified: Mon, 10 Nov 2003 19:18:56 GMT
Page URL: http://www.nersc.gov/nusers/help/tutorials/openmp/flush.php
Web contact: webmaster@nersc.gov
Computing questions: consult@nersc.gov

Privacy and Security Notice
DOE Office of Science