A variable named in a COPYIN clause must be THREADPRIVATE
The OpenMP specification says that COPYIN variables must be THREADPRIVATE. This restriction is enforced by the Intel C++ compiler, but not by the FORTRAN compiler. Therefore this message is only emitted for FORTRAN programs during static analysis.
ID |
Observation |
Description |
---|---|---|
1 |
OpenMP usage error |
The place the bad COPYIN clause was specified |
integer i real :: a(10),b(10) a = 1 !$OMP PARALLEL DO COPYIN(a) do i = 1, 10 b(i) = a(i) + i end do print *, b end
Copyright © 2010, Intel Corporation. All rights reserved.