An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.


Home

OpenMP Directives: Data Scope Attribute Clauses: COPYIN Clause

Purpose:

The COPYIN clause provides a means for assigning the same value to THREADPRIVATE variables for all threads in the team.

Format:

Fortran

COPYIN (list)

C/C++

copyin  (list)

Notes:

List contains the names of variables to copy. In Fortran, the list can contain both the names of common blocks and named variables. The master thread variable is used as the copy source. The team threads are initialized with its value upon entry into the parallel construct.