SINGLE / END SINGLE

  • Encloses code to be executed by only one thread
  • Useful for (short) sequential section within the parallel region
  • Illegal to branch into or out of code enclosed by SINGLE / END SINGLE
  • More on clauses (data environment) later

    !$OMP SINGLE [clause[[,]clause]...]
         block
    !$OMP SINGLE [NOW AIT]