INCLAN: synchronize: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
(Created page with '== Synopsis == '''synchronize''' == Description == Wait until all parallel processes have arrived at this position.')
 
No edit summary
 
Line 5: Line 5:
== Description ==
== Description ==


Wait until all parallel processes have arrived at this position.
Waits until all processes of a parallel calculation have arrived at this point. A typical usage is to wait for a file that is produced by the master process:
 
== Examples ==
 
if (master) then  # execute only by the master process
  ...            # master writes a file to be used by all processes
end if
synchronize      # wait until all processes have arrived here
...               # use the file made by the master process

Latest revision as of 10:25, 17 August 2009

Synopsis

synchronize

Description

Waits until all processes of a parallel calculation have arrived at this point. A typical usage is to wait for a file that is produced by the master process:

Examples

if (master) then  # execute only by the master process
  ...             # master writes a file to be used by all processes
end if
synchronize       # wait until all processes have arrived here 
...               # use the file made by the master process